Commit 549f6196 authored by Peter Rashleigh's avatar Peter Rashleigh Committed by Greg Kroah-Hartman
Browse files

net: dsa: mv88e6xxx: Fix error when setting port policy on mv88e6393x



[ Upstream commit 12bc1494 ]

mv88e6393x_port_set_policy doesn't correctly shift the ptr value when
converting the policy format between the old and new styles, so the
target register ends up with the ptr being written over the data bits.

Shift the pointer to align with the format expected by
mv88e6393x_port_policy_write().

Fixes: 6584b260 ("net: dsa: mv88e6xxx: implement .port_set_policy for Amethyst")
Signed-off-by: default avatarPeter Rashleigh <peter@rashleigh.ca>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Message-ID: <20241016040822.3917-1-peter@rashleigh.ca>
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 09ce4911
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment