Article View: linux.kernel.netdev
Article #7826Re: [PATCH net 0/6 RESEND] net: dsa: b53: PCS fixes
From: Chenguang Zhao
Date: Tue, 27 Oct 2026 09:31
Date: Tue, 27 Oct 2026 09:31
44 lines
10147 bytes
10147 bytes
On Thu, Oct 22, 2026 at 03:56:50PM -0700, Florian Fainelli wrote:
> This patch series fixes a number of issues found with a LLM and while
> testing on a Broadcom Northstar Plus reference board (BCM958625HR) using
> a SFP connected to a fiber converter:
>
> - there was no serialization of the registers across multiple lanes
> - the SerDes powering down was incorrectly managed and should have used
> .pcs_{enable,disable}
> - the interfaces advertisement should have been confined to successfully
> initialized PCSes
> - the negotation and forced link parameters were incorrectly supported
> and should have used pcs_link_up and pcs_inband_caps
> - link state should have been reported through the PCS
>
> With these patches disconnecting the fiber cables triggers a link down,
> as does disconnecting the fiber converter from its cable or powering it
> down, ip link up/down also work properly as a result as well.
>
> Florian Fainelli (6):
> net: dsa: b53: serialize SerDes register transactions
> net: dsa: b53: manage SerDes power through the PCS callbacks
> net: dsa: b53: constrain SerDes interfaces to initialized PCSes
> net: dsa: b53: configure PCS negotiation and forced link parameters
> net: dsa: b53: report link state through the PCS
> net: dsa: b53: apply resolved link settings to serial port MACs
>
> drivers/net/dsa/b53/b53_common.c | 69 ++----
> drivers/net/dsa/b53/b53_priv.h | 4 -
> drivers/net/dsa/b53/b53_serdes.c | 407 +++++++++++++++++++++++--------
> drivers/net/dsa/b53/b53_serdes.h | 13 +-
> drivers/net/dsa/b53/b53_srab.c | 12 +-
> 5 files changed, 345 insertions(+), 160 deletions(-)
>
> --
> 2.53.0
>
Hi Florian,
Please take a look at the issues Sashiko reported.
Thanks,
Chenguang
Technical Details
Message-ID:
<20261027093147.GA1548768@pc>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352327-linux-kernel-netdev=dewy.ruReferences:
<20261022225656.1387306-1-florian.fainelli@broadcom.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-352327-linux-kernel-netdev=dewy.ru From: chenguang.zhao@linux.dev (Chenguang Zhao) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net 0/6 RESEND] net: dsa: b53: PCS fixes Date: Tue, 27 Oct 2026 17:31:47 +0800 Organization: Usenet Network Message-ID: <20261027093147.GA1548768@pc> References: <20261022225656.1387306-1-florian.fainelli@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1503785"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Vc9CF8AVE8zbh/fxelQCGp+0xQw= sha256:Jqr0p7dbvgR3inqynQnqboI8BWq1O2wbz+8DKmWPLg4= sha1:vmbqCQl9vlOy9mBIfeeE+hhbSuo= sha256:OvaP7jsJRVpac+hwNWkgygravRxC6N8aYYxWKo7ePdM= Content-Disposition: inline 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 72F3A125BE6; Tue, 27 Oct 2026 12:35:32 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 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.25, 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 (1024-bit key) header.d=linux.dev 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 4ewldariYstx; Tue, 27 Oct 2026 12:35:26 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-352327-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 3B2B9125BDE; Tue, 27 Oct 2026 12:35:18 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 7F06F2DA41; Tue, 27 Oct 2026 09:31:23 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793093482; b=KcyJMiqq/ZSiI1GI0USJ3BJpEzh/QwsOZy4Za6RJiEbLtzfgZoAF3dr+BsUKuhsh9gRu m6p2eRtxUx6ThNII4Sz6YlYj53Tiox/5D1T57xiJvOQRCtmoHfaI/bC4zN874j2+fDrRp OrdDtNmf0RlzK+upV69GkxF06iiMKYNwHsgDo3RY0zNqlnOM5W199oN1zTtjW1BDLK1W2 q54vERpJ1vL1SEDSO9f8BDDBAs//XuYP9F4ZfWdVHBbLBWh50G9L1A9r8tnSKFKiccDEi tmWrJBoWh6x3McPpf69KCjc8q2HpPNy4voG6WIw/7djJMBOW3kVmZNXkHvvFVHenuog== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793093482; h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature: X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=kIXCKvOTKtSXTnAmt+w2O5J3oCLsmilmPqyShsZT8Vs=; b=REBJMgdmr38L5KyEOjYkPxtd1h8NroMXvTm2H8TXa8mVXw1fdYLT/vDaySvnQeUWzz7j djdWJZ0XHOw3f4vsAxBm9TDfWu94VALs2w1AXmqjUmHwD0xZg+rK013SMvT/8Ezx3VQ39 XDmxULbDV7k0t3lpH+Hqb7nxnJRzY/fCvaHKBk0g8PyebLTxZOo9abpb3mU8SguNkEdbV +A1jOi/7tcYMBlq+qgL8EWRhFBplEp+gEImt6X3VfH3v3kLN48kQXApqzdApdoHB/7Tnd mF5po0BP80pqIsKS50zl5SHLp7q/hzKfHwx+Wuyb+zX5xRAnsgQMu86mt7ETZSX8iAA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=TOPyQ1WI; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9FC00606A31E; Tue, 27 Oct 2026 09:31:22 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=TOPyQ1WI X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.108 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793093476; b=5tHTuXr9ydS8VxVIiTg6NXK/whX66I7ba7eKfEvvtyePGXfroIhCNHwg/OOhu07MYkNV JeTQ47cqeQ4bAZ5Ii6CJAwLwDWssFnGaZRSx/9FGV0Q/RsJgIBwQG3d6jBqeEcmAD8QeC pOScfIvefEx3tnXD4Snlj8FbipbQpr2ACGbRbDby1GlfOyEorkSlJZKsWEQd/Dmij+37v HqlSK+whLYfXfAyR9m9Qo5C8PormxEdTV4ap3+ngJWt72KvqXuuQd1e8z2pfGsG+I9J00 17TndJ9r4+xraqJl5jzRUcHAarbAw+x4dixU7IL58XAIGLvKSj8tZ0qNOtq4x2zeoQQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793093476; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=kIXCKvOTKtSXTnAmt+w2O5J3oCLsmilmPqyShsZT8Vs=; b=mGvh0DHuf5Tjs5OFr0ihWs+aUW6fcMLJOACRtkdb0+IgPToZPoD80XyXSTCVcNvgpjOp 3B62yxLeht1GB6NURZXsMx67vueu4/xuhh2/MllDVT9mMtYoiIWYXg6AQnt9ivxwiRqKo 0IL7dNSM/+EfKAZHPfA2ZNMtVu85hEXggPUxaIjub69yF2HJ+qR5WdXnlSYOoQqHaPnxq T58a8JxWL/oyaHRfFccHVcqSb1Rv6d7E+si5tTtIiQY24NY5FNVt15eDze5jBewRsYvAh JF4ZnEWGIZTXjXx/JDLp7035IaHZNppROmW7a5H0z1V5J3fey3Zz61A/HfPsipc/L6Q== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=TOPyQ1WI; arc=none smtp.remote-ip=95.215.58.108 X-Received: from mta1.migadu.com (out-108.mta1.migadu.com [95.215.58.108]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 203CA606A31A for <netdev@vger.kernel.org>; Tue, 27 Oct 2026 09:31:14 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 203CA606A31A X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: netdev@vger.kernel.org X-DKIM-Signature: a=rsa-sha256; bh=SiCopvP+yMT0xlwZ2moQJ9M5qKmGAl7iAC0O0RjC/0M=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1793093473; v=1; x=1793698273; b=TOPyQ1WIMjqfIiE1Hic3NjFMjMCQncNZBcwpogDTnEhep6VLeb0QhbW6akilADh+9Hwf6HQy USb90LqBiZBbaVoeqg2aUwyqocWBGuHP+rtbFUWbe9FTA5/tsmI5iJKSI9EcsQ/AHOh/WXOekq5 8qHBk0rQ9XiCFL2rL8xTyDUc= X-Envelope-To: netdev@vger.kernel.org X-Received: by smtp.migadu.com with ESMTPS id 217aa2d2c16b77b4; Tue, 27 Oct 2026 09:31:13 +0000 X-Mizu-Trace-ID: 217aa2d2c16b77b4 X-Migadu-Flow: FLOW_OUT X-Cc: netdev@vger.kernel.org, Jonas Gorski <jonas.gorski@gmail.com>, Andrew Lunn <andrew@lunn.ch>, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Russell King <linux@armlinux.org.uk>, "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>, open list <linux-kernel@vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261022225656.1387306-1-florian.fainelli@broadcom.com>