net: phy: marvell: Fix invalid comparison in the resume and suspend functions
Kurt Cancemi authored
This bug resulted in only the current mode being resumed and suspended when
the PHY supported both fiber and copper modes and when the PHY only supported
copper mode the fiber mode would incorrectly be attempted to be resumed and
suspended.

Fixes: 3758be3d

 ("Marvell phy: add functions to suspend and resume both interfaces: fiber and copper links.")
Signed-off-by: default avatarKurt Cancemi <kurt@x64architecture.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220312201512.326047-1-kurt@x64architecture.com

Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
837d9e49
Name Last commit Last update
..
mscc net_tstamp: add new flag HWTSTAMP_FLAG_BONDED_PHC_INDEX
Kconfig ethernet: fix PTP_1588_CLOCK dependencies
Makefile net: phy: add Maxlinear GPY115/21x/24x driver
adin.c net: phy: Demote non-compliant kernel-doc headers
amd.c net: phy: amd: remove the use of .ack_interrupt()
aquantia.h net: phy: Use the correct style for SPDX License Identifier
aquantia_hwmon.c net: phy: aquantia: add hwmon support
aquantia_main.c net: phy: aquantia: do not return an error on clearing pending IRQs
at803x.c net: phy: Fix qca8081 with speeds lower than 2.5Gb/s
ax88796b.c net: usb/phy: asix: add support for ax88772A/C PHYs
bcm-cygnus.c net: phy: broadcom: remove use of ack_interrupt()
bcm-phy-lib.c net: phy: broadcom: Only advertise EEE for supported modes
bcm-phy-lib.h net: phy: broadcom: implement generic .handle_interrupt() callback
bcm54140.c net: phy: broadcom: remove use of ack_interrupt()
bcm63xx.c net: phy: broadcom: remove use of ack_interrupt()
bcm7xxx.c net: phy: bcm7xxx: Add EPHY entry for 7712
bcm84881.c net: phy: bcm84881: clear settings on link down
bcm87xx.c net: phy: change format of some declarations
broadcom.c net: phy: broadcom: hook up soft_reset for BCM54616S
cicada.c net: phy: cicada: remove the use of .ack_interrupt()
cortina.c net: mdiobus: add clause 45 mdiobus accessors
davicom.c net: phy: fix space alignment issues
dp83640.c net_tstamp: add new flag HWTSTAMP_FLAG_BONDED_PHC_INDEX
dp83640_reg.h ptp: dp83640: don't define PAGE0
dp83822.c net: phy: DP83822: clear MISR2 register to disable interrupts
dp83848.c
dp83867.c
dp83869.c
dp83tc811.c
et1011c.c
fixed_phy.c
icplus.c
intel-xway.c
linkmode.c
lxt.c
marvell-88x2222.c
marvell.c
marvell10g.c
mdio-boardinfo.c
mdio-boardinfo.h
mdio_bus.c
mdio_device.c
mdio_devres.c
mediatek-ge.c
meson-gxl.c
micrel.c
microchip.c
microchip_t1.c
mii_timestamper.c
motorcomm.c
mxl-gpy.c
national.c
nxp-c45-tja11xx.c
nxp-tja11xx.c
phy-c45.c
phy-core.c
phy.c
phy_device.c
phy_led_triggers.c
phylink.c
qsemi.c
realtek.c
rockchip.c
sfp-bus.c
sfp.c
sfp.h
smsc.c
spi_ks8995.c
ste10Xp.c
swphy.c
swphy.h
teranetics.c
uPD60620.c
vitesse.c
xilinx_gmii2rgmii.c