]> git.baikalelectronics.ru Git - kernel.git/commit
net: prestera: cache port state for non-phylink ports too
authorMaksym Glubokiy <maksym.glubokiy@plvision.eu>
Thu, 18 Aug 2022 11:18:21 +0000 (14:18 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Aug 2022 13:56:45 +0000 (14:56 +0100)
commitd86d1a4fc1703e42b89158665477061df9edcb8d
treee58d1996931b67095af67fbcfe034ba5ecc88746
parente3a058373a1e1ae0d38622c524ff0ab42ae45cf2
net: prestera: cache port state for non-phylink ports too

Port event data must stored to port-state cache regardless of whether
the port uses phylink or not since this data is used by ethtool.

Fixes: 43af1363f5e5 ("net: marvell: prestera: add phylink support")
Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
Signed-off-by: Maksym Glubokiy <maksym.glubokiy@plvision.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/prestera/prestera_main.c