From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 786EC352090; Tue, 26 Aug 2025 14:37:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756219029; cv=none; b=YTEvPO5G+NGohx3N9g43r7DpRQfSHNpY+skcY7UZGSdBdXjKPeagipQnYbLJeDVxeS/E94tkPumA9Y77Ma+ON/aKMIVvBNBOgZtrNeWQWFjZAV1Vleph9P75oUL2ayx08284wVYgR6P7I7OwzNoaKG9LuwJN851ahvr5Kn1/Ofs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756219029; c=relaxed/simple; bh=q5xxLu0F/GFLy2pUx3e2VG6iBI5M3437jTRF1WICNKw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Amoy7YhF5qr9ftBe6tlf8ujXJgGBLfopXTTA55nGNYixxxpGP4cSypChdAOyMF4+Wpq6vfcWRVeQnWAwsgq17jcsUnl34s73fdnkXouqtqRL+yOhuj9Ogs/UeMA3m/2zBTULf9DX1Us5kS+061bn7W80UVzA9OjfM/aoELMI34g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qinqnGbF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="qinqnGbF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 087E2C4CEF1; Tue, 26 Aug 2025 14:37:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1756219029; bh=q5xxLu0F/GFLy2pUx3e2VG6iBI5M3437jTRF1WICNKw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qinqnGbFMHzm0R5iEbzJvF8hTHnNnN4yhwyQQo1sQ43Xo0En3dvWNYVcQOjGFGjCb CxudzscdnNe9rB0SaefMMP4+05pA6JhmbS3TP1sxTwAoB2iBF0LgJKrednsM+pZInO AjS0bxTk9GHqp0lLhmFbBau4cQsQIyo9l8vhXytI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Florian Fainelli , =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.4 226/403] net: dsa: b53: fix b53_imp_vlan_setup for BCM5325 Date: Tue, 26 Aug 2025 13:09:12 +0200 Message-ID: <20250826110913.073779740@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250826110905.607690791@linuxfoundation.org> References: <20250826110905.607690791@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Álvaro Fernández Rojas [ Upstream commit c00df1018791185ea398f78af415a2a0aaa0c79c ] CPU port should be B53_CPU_PORT instead of B53_CPU_PORT_25 for B53_PVLAN_PORT_MASK register. Reviewed-by: Florian Fainelli Signed-off-by: Álvaro Fernández Rojas Link: https://patch.msgid.link/20250614080000.1884236-14-noltari@gmail.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/dsa/b53/b53_common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/dsa/b53/b53_common.c b/drivers/net/dsa/b53/b53_common.c index d41c9006a028..1816a5b56d51 100644 --- a/drivers/net/dsa/b53/b53_common.c +++ b/drivers/net/dsa/b53/b53_common.c @@ -502,6 +502,10 @@ void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port) unsigned int i; u16 pvlan; + /* BCM5325 CPU port is at 8 */ + if ((is5325(dev) || is5365(dev)) && cpu_port == B53_CPU_PORT_25) + cpu_port = B53_CPU_PORT; + /* Enable the IMP port to be in the same VLAN as the other ports * on a per-port basis such that we only have Port i and IMP in * the same VLAN. -- 2.39.5