Article View: linux.kernel.netdev
Article #17233Re: [PATCH net-next v2 08/10] net: dsa: realtek: rtl8365mb: program the PCP of untagged frames
From: Andrew Lunn
Date: Mon, 16 Nov 2026 14:06
Date: Mon, 16 Nov 2026 14:06
15 lines
9016 bytes
9016 bytes
> Restoring the old PCP does not help here. A write can fail for two > reasons. One is a register access the regmap configuration rejects; > that is a driver bug and shows up on every call, not something to > recover from at runtime. The other is an MDIO bus error, and then the > restore goes over the same failing bus, and the state of the switch is > unknown whatever the driver does. Reordering the writes does not help > either: either order leaves one field new and one old on failure. So > v3 keeps the code as it is. The LLM often does comment about MDIO errors, but they pretty much never happen, and there is no recovery. So i agree, this can be ignored. Andrew
Technical Details
Message-ID:
<e3e3ec6c-1242-4072-a251-8571add37013@lunn.ch>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364405-linux-kernel-netdev=dewy.ruReferences:
<20261112-rtl8365mb-dcb-ingress-v2-8-f8e6fbdf8c99@pengutronix.de> <179478369746.3136.10805769576309531848@kernel.org> <avsJ-gmYVHqx48ON@pengutronix.de>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364405-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 08/10] net: dsa: realtek: rtl8365mb: program the PCP of untagged frames Date: Mon, 16 Nov 2026 15:06:10 +0100 Organization: Usenet Network Message-ID: <e3e3ec6c-1242-4072-a251-8571add37013@lunn.ch> References: <20261112-rtl8365mb-dcb-ingress-v2-8-f8e6fbdf8c99@pengutronix.de> <179478369746.3136.10805769576309531848@kernel.org> <avsJ-gmYVHqx48ON@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2081368"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:vrFc3q0GpiwdryGUMmyRnkPZLRA= sha256:sCFPu6lDRWjS00eebwfrcnB8oZAh8YyWrxICc6qvBC8= sha1:lvIAVpxuSBpl9ZgK9XltQB9l2YI= sha256:sZlfgvL9OUkcDuwE1FsjEzSqQOWtOgdoV2vjWnrRr6g= 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 2E4AE114C62; Mon, 16 Nov 2026 17:06:39 +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.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch 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 MxApyPCGzPJn; Mon, 16 Nov 2026 17:06:35 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-364405-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id F37E8114C12; Mon, 16 Nov 2026 17:06:26 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id A35E9205F3; Mon, 16 Nov 2026 14:06:24 +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=1794837980; b=BfvWh2WPEVq3a6k68vRMKpfIVbSSgnR++IbGkb3l2ZTI9P8ozG90sk2sgm1tZc+enHt+ 59ATky/7bj2zcYrhjndNH8DCmWXJkbqUuvevF/tZC0vqcFmVQvzGBOvTIqbaqjPNBRTzv au34CdxIeX5RbphpEeogVfHjLRf3PwilxfPdfbwxbGfMF7kbmPbCAj4ER2fSet4UKMEo0 85mEGWH5SBH/lGrmeUSelC15LKItTb9cT3+Tn7Ujvbb2wigi/6Z9oxxmtFokcjcxxgUNm 15S5brAn2BwgUENLCaqkvD47vac4SznmTTjSVlGmiz2JSFbMvQjuTx0tNLOo52nYkQA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794837980; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received: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=uQ490Z9YD5Zb0B6sUGm01PlusvpF3yI7T/jSq/07g/M=; b=bkKRiS67jNiOkO92AufteyCD+aKyC1fgbemFDuMkAEyJ2ttxazDwDfgWLYEl1CaDxLtH 6PcybHkyQ6BW/nWT/Lf6/APDS7HL8NajL9zlqGo83ccHsMr33tk1IhJAYVNhhV9JFtAsD XKpmdJJCbt6AHYFicvRsrHJzr3YifIfulikeJgJ4i8udOCg7VrmpXjgfgm4B+8Wqii+tL PxgJnyALIc9ILA+22dQSFkNpNfyhGcf6kd2MmD3omUUZQh7dARXNjsyvPjBck2HHUzKi9 XemWkP4AssQobdsdtKRNPjuj5BDrkSAME8ELo9g+GsqA1Zszbm6NAhnRlra7EYl6s5Q== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=1HFFJoh+; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; 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 ACA9D606A886; Mon, 16 Nov 2026 14:06:20 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=1HFFJoh+ X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794837979; b=YmeC1ND8UwdA+cwBnGgv2IL6UPyVDdOkvNCowAQLTtMIapF2jC/2VqeKsluasR6twKXL zRIaUPaJRq6Hiya42q4VasL3GAxOKBgWwDuLbdK3DmK7Ln3m4g7t/T906sJJB74Zc7yeo /vZHy4xOPhtUlS0AD33hn5AfyDByCj681+mbhodafn0utU1Cya3YRai5Tfxi4uePqsXZ1 j7Aq76iTBaNg6YMsqavCYLTEIOj9WPGG5aRn/TldXyVsE3YxvcYJuNIMDYY6ogGlTsrbi /wqhmnErH7r2Cn5eA5pB5Ws+cCXao1XlLUYqIPp7/CrEawDGvYTxUhtSjzMeSP1nBcQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794837979; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=uQ490Z9YD5Zb0B6sUGm01PlusvpF3yI7T/jSq/07g/M=; b=WWvMaJ+KGa1jqGkiFGdkAMClj3r6R6fM1GExIwbdX0rBEEYMVI+AnfkH160WHx8Uqwe9 A8jpReKHL2ttAkrtg56wlz/VqCEvg8j5IZQROwicw1XcV5b9Pd3v4azvyiqPG69rUA/Ld tkP1orfBfUl3c97rjd0/GwVX+5h3ZVS7dhWj8H8O5ntVVBcwPmffnVaPjkX4c2nDCrqiQ HC0GKXaGU/FiK+I0my7QW+b+x6LNBiFqUN/m2TS5qcaJfRv1+SJ5RhMews4+WCGvLjT0Y W7wuUGZ4URh++d4oaxtVj2BslxfoTAvrXM7J/rk04XOMB/n4x+c4viKnzkRoQvNe+Lw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=1HFFJoh+; arc=none smtp.remote-ip=156.67.10.101 X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D236606A323; Mon, 16 Nov 2026 14:06:19 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8D236606A323 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=uQ490Z9YD5Zb0B6sUGm01PlusvpF3yI7T/jSq/07g/M=; b=1HFFJoh+0tpJ0TOZ3zWzqtcsUY E4OTYeSRkFn7qsyit+tbv+xlPpIpqHjU4JNK9Ltud7e0GyoeIc30NOfg5p6b3t/mc2XhPSIZYOoEq FkhXkTIEm1DDzaEx2P4ZyoMm1Z3ka8/fnnolMESRLsEXRwkc6RJWfPImhDQQaL5RLC80=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xSxLW-00GvtA-27; Mon, 16 Nov 2026 15:06:10 +0100 X-Cc: netdev-bot+sashiko@kernel.org, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, linusw@kernel.org, luizluca@gmail.com, alvin.sipraga@analog.com, olteanv@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de 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: <avsJ-gmYVHqx48ON@pengutronix.de>