mirror-linux/drivers/net/phy
Marek Vasut 2c67301584 net: phy: realtek: Avoid PHYCR2 access if PHYCR2 not present
The driver is currently checking for PHYCR2 register presence in
rtl8211f_config_init(), but it does so after accessing PHYCR2 to
disable EEE. This was introduced in commit bfc17c1658 ("net:
phy: realtek: disable PHY-mode EEE"). Move the PHYCR2 presence
test before the EEE disablement and simplify the code.

Fixes: bfc17c1658 ("net: phy: realtek: disable PHY-mode EEE")
Signed-off-by: Marek Vasut <marek.vasut@mailbox.org>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/20251011110309.12664-1-marek.vasut@mailbox.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-10-13 17:46:01 -07:00
..
aquantia net: phy: aquantia: delete aqr_firmware_read_fingerprint() prototype 2025-09-09 18:24:17 -07:00
mediatek net: phy: mtk-2p5ge: Add LED support for MT7988 2025-08-28 16:43:21 -07:00
mscc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-09-04 13:33:00 -07:00
qcom net: phy: update all PHYs to use sfp_get_module_caps() 2025-09-22 16:05:15 -07:00
realtek net: phy: realtek: Avoid PHYCR2 access if PHYCR2 not present 2025-10-13 17:46:01 -07:00
Kconfig net: phy: move config symbol MDIO_BUS to drivers/net/phy/Kconfig 2025-09-23 16:56:27 -07:00
Makefile net: phy: remove mdio_board_info support from phylib 2025-09-17 15:24:01 -07:00
adin.c
adin1100.c
air_en8811h.c net: phy: air_en8811h: Introduce resume/suspend and clk_restore_context to ensure correct CKO settings after network interface reinitialization. 2025-07-01 19:35:43 -07:00
amd.c
as21xxx.c net: phy: as21xxx: better handle PHY HW reset on soft-reboot 2025-08-26 17:09:27 -07:00
ax88796b.c net: phy: ax88796b: Replace hard-coded values with PHY_ID_MATCH_MODEL() 2025-09-22 16:38:59 -07:00
ax88796b_rust.rs
bcm-cygnus.c
bcm-phy-lib.c
bcm-phy-lib.h
bcm-phy-ptp.c broadcom: fix support for PTP_EXTTS_REQUEST2 ioctl 2025-09-22 11:36:30 -07:00
bcm7xxx.c
bcm63xx.c
bcm87xx.c
bcm54140.c
bcm84881.c
broadcom.c net: phy: bcm54811: Fix GMII/MII/MII-Lite selection 2025-10-13 17:36:20 -07:00
cicada.c
cortina.c
davicom.c
dp83tc811.c
dp83td510.c
dp83tg720.c
dp83640.c net: phy: dp83640: improve phydev and driver removal handling 2025-09-23 16:58:42 -07:00
dp83640_reg.h
dp83822.c
dp83848.c
dp83867.c
dp83869.c
et1011c.c
fixed_phy.c net: phy: fixed_phy: remove struct fixed_mdio_bus 2025-09-09 18:11:55 -07:00
icplus.c
intel-xway.c
linkmode.c
lxt.c
marvell-88q2xxx.c
marvell-88x2222.c net: phy: update all PHYs to use sfp_get_module_caps() 2025-09-22 16:05:15 -07:00
marvell.c net: phy: update all PHYs to use sfp_get_module_caps() 2025-09-22 16:05:15 -07:00
marvell10g.c net: phy: update all PHYs to use sfp_get_module_caps() 2025-09-22 16:05:15 -07:00
mdio-open-alliance.h
mdio_bus.c net: mdiobus: release reset_gpio in mdiobus_unregister_device() 2025-08-12 12:32:58 +02:00
mdio_bus_provider.c net: phy: remove mdio_board_info support from phylib 2025-09-17 15:24:01 -07:00
mdio_device.c
mdio_devres.c
meson-gxl.c
micrel.c net: phy: micrel: Fix lan8814_config_init 2025-09-26 17:32:04 -07:00
microchip.c net: phy: microchip: limit 100M workaround to link-down events on LAN88xx 2025-07-10 18:08:16 -07:00
microchip_rds_ptp.c
microchip_rds_ptp.h
microchip_t1.c
microchip_t1s.c
mii_timestamper.c
motorcomm.c net: phy: motorcomm: Add support for PHY LEDs on YT8521 2025-08-14 17:32:01 -07:00
mxl-86110.c net: phy: mxl-86110: add basic support for MxL86111 PHY 2025-08-25 17:07:01 -07:00
mxl-gpy.c
national.c
ncn26000.c
nxp-c45-tja11xx-macsec.c net: phy: nxp-c45-tja11xx: use bitmap_empty() where appropriate 2025-09-16 12:15:49 +02:00
nxp-c45-tja11xx.c net: phy: nxp-c45-tja11xx: fix the PHY ID mismatch issue when using C45 2025-08-12 12:01:07 +02:00
nxp-c45-tja11xx.h
nxp-cbtx.c
nxp-tja11xx.c
open_alliance_helpers.c
open_alliance_helpers.h
phy-c45.c
phy-caps.h net: phy: annotate linkmode initializers as not used after init phase 2025-09-30 13:17:31 +02:00
phy-core.c net: phy: MII-Lite PHY interface mode 2025-07-09 19:32:30 -07:00
phy.c net: phy: clear link parameters on admin link down 2025-09-18 15:43:26 -07:00
phy_caps.c net: phy: annotate linkmode initializers as not used after init phase 2025-09-30 13:17:31 +02:00
phy_device.c net: phy: annotate linkmode initializers as not used after init phase 2025-09-30 13:17:31 +02:00
phy_led_triggers.c
phy_link_topology.c
phy_package.c
phylib-internal.h
phylib.h
phylink.c net: phylink: use sfp_get_module_caps() 2025-09-22 16:05:15 -07:00
qsemi.c
qt2025.rs
rockchip.c
sfp-bus.c net: sfp: remove old sfp_parse_* functions 2025-09-22 16:05:15 -07:00
sfp.c net: sfp: improve poll interval handling 2025-09-30 13:22:49 +02:00
sfp.h net: sfp: convert sfp quirks to modify struct sfp_module_support 2025-09-22 16:05:14 -07:00
smsc.c net: phy: smsc: add proper reset flags for LAN8710A 2025-07-30 18:14:11 -07:00
ste10Xp.c
stubs.c
swphy.c
swphy.h
teranetics.c
uPD60620.c
vitesse.c
xilinx_gmii2rgmii.c