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)
commit704438dd4f030c1b3d28a2a9c8f182c32d9b6bc4
treee58d1996931b67095af67fbcfe034ba5ecc88746
parent105b0468d7b2e6779a188a83b7e128368acb8a1d
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: 52323ef75414 ("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