All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Marek Behún" <kabel@kernel.org>
To: Andrew Lunn <andrew@lunn.ch>, Vladimir Oltean <olteanv@gmail.com>,
	"Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>,
	Vivien Didelot <vivien.didelot@gmail.com>,
	Tobias Waldekranz <tobias@waldekranz.com>,
	netdev@vger.kernel.org
Cc: "Lev Olshvang" <lev_o@rad.com>, "Marek Behún" <kabel@kernel.org>
Subject: [PATCH net v2 2/7] net: dsa: mv88e6xxx: fix atu_move_port_mask for 6341 family
Date: Mon, 17 Mar 2025 18:32:45 +0100	[thread overview]
Message-ID: <20250317173250.28780-3-kabel@kernel.org> (raw)
In-Reply-To: <20250317173250.28780-1-kabel@kernel.org>

The atu_move_port_mask for 6341 family (Topaz) is 0xf, not 0x1f. The
PortVec field is 8 bits wide, not 11 as in 6390 family. Fix this.

Fixes: e606ca36bbf2 ("net: dsa: mv88e6xxx: rework ATU Remove")
Signed-off-by: Marek Behún <kabel@kernel.org>
---
 drivers/net/dsa/mv88e6xxx/chip.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c
index 06b17c3b2205..b989123cdbeb 100644
--- a/drivers/net/dsa/mv88e6xxx/chip.c
+++ b/drivers/net/dsa/mv88e6xxx/chip.c
@@ -5818,7 +5818,7 @@ static const struct mv88e6xxx_info mv88e6xxx_table[] = {
 		.global1_addr = 0x1b,
 		.global2_addr = 0x1c,
 		.age_time_coeff = 3750,
-		.atu_move_port_mask = 0x1f,
+		.atu_move_port_mask = 0xf,
 		.g1_irqs = 9,
 		.g2_irqs = 10,
 		.stats_type = STATS_TYPE_BANK0 | STATS_TYPE_BANK1,
@@ -6296,7 +6296,7 @@ static const struct mv88e6xxx_info mv88e6xxx_table[] = {
 		.global1_addr = 0x1b,
 		.global2_addr = 0x1c,
 		.age_time_coeff = 3750,
-		.atu_move_port_mask = 0x1f,
+		.atu_move_port_mask = 0xf,
 		.g1_irqs = 9,
 		.g2_irqs = 10,
 		.stats_type = STATS_TYPE_BANK0 | STATS_TYPE_BANK1,
-- 
2.48.1


  parent reply	other threads:[~2025-03-17 17:32 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-17 17:32 [PATCH net v2 0/7] Fixes for mv88e6xxx (mainly 6320 family) Marek Behún
2025-03-17 17:32 ` [PATCH net v2 1/7] net: dsa: mv88e6xxx: fix VTU methods for 6320 family Marek Behún
2025-03-17 21:42   ` Andrew Lunn
2025-03-17 17:32 ` Marek Behún [this message]
2025-03-17 21:42   ` [PATCH net v2 2/7] net: dsa: mv88e6xxx: fix atu_move_port_mask for 6341 family Andrew Lunn
2025-03-17 17:32 ` [PATCH net v2 3/7] net: dsa: mv88e6xxx: enable PVT for 6321 switch Marek Behún
2025-03-17 21:43   ` Andrew Lunn
2025-03-17 17:32 ` [PATCH net v2 4/7] net: dsa: mv88e6xxx: enable .port_set_policy() for 6320 family Marek Behún
2025-03-17 21:43   ` Andrew Lunn
2025-03-17 17:32 ` [PATCH net v2 5/7] net: dsa: mv88e6xxx: enable STU methods " Marek Behún
2025-03-17 21:44   ` Andrew Lunn
2025-03-17 17:32 ` [PATCH net v2 6/7] net: dsa: mv88e6xxx: fix internal PHYs " Marek Behún
2025-03-17 21:44   ` Andrew Lunn
2025-03-17 17:32 ` [PATCH net v2 7/7] net: dsa: mv88e6xxx: workaround RGMII transmit delay erratum " Marek Behún
2025-03-17 21:45   ` Andrew Lunn
2025-03-24 22:10 ` [PATCH net v2 0/7] Fixes for mv88e6xxx (mainly 6320 family) patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250317173250.28780-3-kabel@kernel.org \
    --to=kabel@kernel.org \
    --cc=andrew@lunn.ch \
    --cc=lev_o@rad.com \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=rmk+kernel@armlinux.org.uk \
    --cc=tobias@waldekranz.com \
    --cc=vivien.didelot@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.