WSL2-Linux-Kernel/drivers/net/dsa
Florian Fainelli e3e02d681d net: dsa: bcm_sf2: Fix Wake-on-LAN with mac_link_down()
[ Upstream commit b7be130c5d ]

After commit 2d1f90f9ba ("net: dsa/bcm_sf2: fix incorrect usage of
state->link") the interface suspend path would call our mac_link_down()
call back which would forcibly set the link down, thus preventing
Wake-on-LAN packets from reaching our management port.

Fix this by looking at whether the port is enabled for Wake-on-LAN and
not clearing the link status in that case to let packets go through.

Fixes: 2d1f90f9ba ("net: dsa/bcm_sf2: fix incorrect usage of state->link")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20220512021731.2494261-1-f.fainelli@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-05-18 10:26:51 +02:00
..
b53 net: dsa: b53: Add SPI ID table 2021-12-08 09:04:47 +01:00
hirschmann net: dsa: hellcreek: Add missing PTP via UDP rules 2022-01-27 11:03:38 +01:00
microchip net: dsa: microchip: add spi_device_id tables 2022-04-08 14:22:48 +02:00
mv88e6xxx net: dsa: mv88e6xxx: Fix port_hidden_wait to account for port_base_addr 2022-05-09 09:14:37 +02:00
ocelot net: dsa: felix: suppress -EPROBE_DEFER errors 2022-04-20 09:34:10 +02:00
qca net: dsa: ar9331: register the mdiobus under devres 2022-02-16 12:56:28 +01:00
sja1105 net: dsa: sja1105: break dependency between dsa_port_is_sja1105 and switch driver 2021-10-12 17:33:36 -07:00
xrs700x net: dsa: xrs700x: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
Kconfig net: dsa: lan9303: add VLAN IDs to master device 2022-02-23 12:03:11 +01:00
Makefile
bcm_sf2.c net: dsa: bcm_sf2: Fix Wake-on-LAN with mac_link_down() 2022-05-18 10:26:51 +02:00
bcm_sf2.h
bcm_sf2_cfp.c net: dsa: bcm_sf2_cfp: fix an incorrect NULL check on list iterator 2022-04-08 14:23:54 +02:00
bcm_sf2_regs.h
dsa_loop.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
dsa_loop.h
dsa_loop_bdinfo.c
lan9303-core.c net: dsa: lan9303: add VLAN IDs to master device 2022-02-23 12:03:11 +01:00
lan9303.h net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
lan9303_i2c.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
lan9303_mdio.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
lantiq_gswip.c net: dsa: lantiq_gswip: Don't set GSWIP_MII_CFG_RMII_CLK 2022-05-09 09:14:38 +02:00
lantiq_pce.h
mt7530.c net: dsa: mt7530: add missing of_node_put() in mt7530_setup() 2022-05-12 12:30:16 +02:00
mt7530.h net: dsa: mt7530: manually set up VLAN ID 0 2021-08-25 11:09:31 +01:00
mv88e6060.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
mv88e6060.h
qca8k.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
qca8k.h
realtek-smi-core.c net: dsa: realtek: register the MDIO bus under devres 2021-09-21 13:52:16 +01:00
realtek-smi-core.h
rtl8366.c net: dsa: rtl8366: Fix a bug in deleting VLANs 2021-11-18 19:16:26 +01:00
rtl8366rb.c net: dsa: rtl8366rb: Fix off-by-one bug 2021-11-18 19:16:26 +01:00
vitesse-vsc73xx-core.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
vitesse-vsc73xx-platform.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
vitesse-vsc73xx-spi.c net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00
vitesse-vsc73xx.h net: dsa: be compatible with masters which unregister on shutdown 2021-09-19 12:08:37 +01:00