🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #101

Re: [PATCH net v2] net: dsa: microchip: fix KSZ8765 fiber detection

#101
From: Nicolai Buchwitz
Date: Wed, 07 Oct 2026 08:14
48 lines
7371 bytes
Hi Sébastien

On 7.10.2026 10:05, Sebastien Royen wrote:
> The KSZ8765 is similar to the KSZ8795 but has two fiber ports.
> 
> KSZ8_PORT_STATUS_0 is used to detect fiber mode. It is currently
> defined as 0x08, which is the Global Control 6 MIB Control register
> and has bit 7 defined as Flush Counter.
> 
> Set KSZ8_PORT_STATUS_0 to 0x18, which is the Port 1 Status 0 register
> where bit 7 is the Fiber Mode bit.
> 
> Fixes: 91a98917a883 ("net: dsa: microchip: move switch chip_id 
> detection to ksz_common")
> Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>
> Signed-off-by: Sebastien Royen <sebastien.royen@armadeus.com>
> ---
>  drivers/net/dsa/microchip/ksz_common.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/dsa/microchip/ksz_common.h 
> b/drivers/net/dsa/microchip/ksz_common.h
> index cbe98494578c..f6104f714a8d 100644
> --- a/drivers/net/dsa/microchip/ksz_common.h
> +++ b/drivers/net/dsa/microchip/ksz_common.h
> @@ -853,7 +853,7 @@ static inline bool ksz_is_sgmii_port(struct 
> ksz_device *dev, int port)
>  #define KSZ88_FAMILY_ID			0x88
>  #define KSZ8895_FAMILY_ID		0x95
> 
> -#define KSZ8_PORT_STATUS_0		0x08
> +#define KSZ8_PORT_STATUS_0		0x18
>  #define KSZ8_PORT_FIBER_MODE		BIT(7)
> 
>  #define SW_CHIP_ID_M			GENMASK(7, 4)

Please do not send new versions in response to the earlier version, but 
send it
like you would send a new patch (with the usual v2 ... prefix).

For more details please have a look at the netdev contribution docs [1]

[1] 
https://docs.kernel.org/process/maintainer-netdev.html#resending-after-review

Thanks,
Nicolai
Technical Details
Message-ID: <61a356fb9601b9ab7a8e67a07d4ad2b2@tipi-net.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342245-linux-kernel-netdev=dewy.ru
References: <20261006130006.134847-1-sebastien.royen@armadeus.com> <20261007080557.15719-1-sebastien.royen@armadeus.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342245-linux-kernel-netdev=dewy.ru
From: nb@tipi-net.de (Nicolai Buchwitz)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2] net: dsa: microchip: fix KSZ8765 fiber detection
Date: Wed, 07 Oct 2026 10:14:33 +0200
Organization: Usenet Network
Message-ID: <61a356fb9601b9ab7a8e67a07d4ad2b2@tipi-net.de>
References: <20261006130006.134847-1-sebastien.royen@armadeus.com>
 <20261007080557.15719-1-sebastien.royen@armadeus.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8;
 format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="606644"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:8ZsPV2a4EiQ7K0WhQwfkIGTx7X4= sha256:uOZxSezZeDVSBObNXsYZtFjk4844Uk1f2/SZHxE4n5M=
	sha1:3/R/5yFkQNkXSQDp+Qd7z06a/gk= sha256:lO20laTGFrME73J0aCykkhGi8RZv0duRVN5nqxSgW3Q=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 61CFE10F108; Wed,  7 Oct 2026 11:15:23 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=tipi-net.de
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id xnZS8oKVsuL9;
	Wed,  7 Oct 2026 11:15:19 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-342245-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id C553610F104; Wed,  7 Oct 2026 11:15:14 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id E95A726600; Wed,  7 Oct 2026 08:14:43 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id E893043C7A4;
	Wed,  7 Oct 2026 08:14:41 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.b="PmpbSbDy"
X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2326942B324
	for <netdev@vger.kernel.org>; Wed,  7 Oct 2026 08:14:35 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.13.80.246
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791360881; cv=none; b=gfO7v88I7QqRQDt7uy1pbzVDAWaY0GRNoaWjRU4dNp7lPwklXbfW2QbPz+r4smqhsAa3j8fdGxZkrQCYnTt1Mh81MqzhvIqftwFZnND+/Nd+j7IHyE1DiWETm/vn89r8PA8l6B1d7klzpoSKv4wA3gYBj/ZrqN1JVEO5QewXdy8=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791360881; c=relaxed/simple;
	bh=SSkjGtZQquYOJbt5UgkbrEOq3tFVjx9yvdjFW56bpGY=;
	h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References:
	 Message-ID:Content-Type; b=Do9QY61tXJs+AqpnB973pVHLpEfXFO+tjIcX1nHeTyn75M4xyZ8N0R1KCRSQh5fkB5KzXo0EeROkP65r83x/IVkNkzdDCDg1lyUFW47RtLS3CZZQwg3RI6Ns++2Mo6wrC2/gkr/MrUe/9VSohOX+HzspSD+6J4N31+NUe7FU9Gs=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de; spf=pass smtp.mailfrom=tipi-net.de; dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.b=PmpbSbDy; arc=none smtp.client-ip=194.13.80.246
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de
X-Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 4E662A0E2B;
	Wed,  7 Oct 2026 10:14:33 +0200 (CEST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim;
	t=1791360873; h=from:subject:date:message-id:to:cc:mime-version:content-type:
	 content-transfer-encoding:in-reply-to:references;
	bh=GD7LuJmQFmVQO4dMUP/Ii4eVCRRdR6Rje5Rl55oH2qU=;
	b=PmpbSbDy+Qa3RiMHAFpsnsBWuJPLI3sC2b+/6YYYNoKahOgTkKEsxadT0p8nUcmJY8Yl07
	PAXn1lMvd+eFQ5jQz3waV4zSifUNZivZQlUvbThVAIHheUTZZiFVmJ/tDxjP1VcgHAzsVB
	nSPBxCLJr4nFB/9J5zk6pwGJORxL/dq5nuh45tt4iDKdvp69xPXQsz72dFEH6LF714MH3g
	x+pM2xt7gCirme9GMpJyZYAtQPr+7nuG/2OC+bk5SsGG7Gf+zSgIyTPXPpoBVRIm7aL+wG
	T2amCJXzrs006OA5rSMfgW4+jFqVm1UV2YUw8276w1YzgnxLw/8CFSuIDUgQdg==
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-Cc: Woojung Huh <woojung.huh@microchip.com>, netdev@vger.kernel.org
X-In-Reply-To: <20261007080557.15719-1-sebastien.royen@armadeus.com>
X-Sender: nb@tipi-net.de
X-Last-TLS-Session-Version: TLSv1.3