Skip to content

Commit 9ef70d0

Browse files
Russell King (Oracle)Paolo Abeni
authored andcommitted
net: dsa: qca8k: remove assignment of an_enabled in pcs_get_state()
pcs_get_state() implementations are not supposed to alter an_enabled. Remove this assignment. Fixes: b3591c2 ("net: dsa: qca8k: Switch to PHYLINK instead of PHYLIB") Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Link: https://lore.kernel.org/r/E1pdsE5-00Dl2l-8F@rmk-PC.armlinux.org.uk Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent a4926c2 commit 9ef70d0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/dsa/qca/qca8k-8xxx.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,6 @@ static void qca8k_pcs_get_state(struct phylink_pcs *pcs,
14831483

14841484
state->link = !!(reg & QCA8K_PORT_STATUS_LINK_UP);
14851485
state->an_complete = state->link;
1486-
state->an_enabled = !!(reg & QCA8K_PORT_STATUS_LINK_AUTO);
14871486
state->duplex = (reg & QCA8K_PORT_STATUS_DUPLEX) ? DUPLEX_FULL :
14881487
DUPLEX_HALF;
14891488

0 commit comments

Comments
 (0)