linux-stable/drivers/net/pcs
Clément Léger 90c74f4d90 net: pcs: rzn1-miic: update speed only if interface is changed
As stated by Russel King, miic_config() can be called as a result of
ethtool setting the configuration while the link is already up. Since
the speed is also set in this function, it could potentially modify
the current speed that is set. This will only happen if there is
no PHY present and we aren't using fixed-link mode.

Handle that by storing the current interface mode in the miic_port
structure and update the speed only if the interface mode is going to
be changed.

Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Link: https://lore.kernel.org/r/20220629122003.189397-1-clement.leger@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-07-01 19:16:00 -07:00
..
Kconfig net: pcs: add Renesas MII converter driver 2022-06-27 11:37:55 +01:00
Makefile net: pcs: add Renesas MII converter driver 2022-06-27 11:37:55 +01:00
pcs-lynx.c net: pcs: lynx: consolidate sgmii and 1000base-x config code 2022-06-24 11:27:24 -07:00
pcs-rzn1-miic.c net: pcs: rzn1-miic: update speed only if interface is changed 2022-07-01 19:16:00 -07:00
pcs-xpcs-nxp.c net: update NXP copyright text 2021-09-17 13:52:17 +01:00
pcs-xpcs.c net: pcs: pcs-xpcs: use mii_bmcr_encode_fixed() 2022-06-19 10:38:26 +01:00
pcs-xpcs.h net: pcs: xpcs: add CL37 1000BASE-X AN support 2022-06-17 10:55:35 +01:00