mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
![]() Introduce Wake on Magic Packet (WoL) functionality to the ksz9477 driver. Major changes include: 1. Extending the `ksz9477_handle_wake_reason` function to identify Magic Packet wake events alongside existing wake reasons. 2. Updating the `ksz9477_get_wol` and `ksz9477_set_wol` functions to handle WAKE_MAGIC alongside the existing WAKE_PHY option, and to program the switch's MAC address register accordingly when Magic Packet wake-up is enabled. This change will prevent WAKE_MAGIC activation if the related port has a different MAC address compared to a MAC address already used by HSR or an already active WAKE_MAGIC on another port. 3. Adding a restriction in `ksz_port_set_mac_address` to prevent MAC address changes on ports with active Wake on Magic Packet, as the switch's MAC address register is utilized for this feature. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Link: https://lore.kernel.org/r/20231026051051.2316937-2-o.rempel@pengutronix.de Signed-off-by: Jakub Kicinski <kuba@kernel.org> |
||
---|---|---|
.. | ||
Kconfig | ||
ksz8.h | ||
ksz8795.c | ||
ksz8795_reg.h | ||
ksz8863_smi.c | ||
ksz9477.c | ||
ksz9477.h | ||
ksz9477_acl.c | ||
ksz9477_i2c.c | ||
ksz9477_reg.h | ||
ksz9477_tc_flower.c | ||
ksz_common.c | ||
ksz_common.h | ||
ksz_ptp.c | ||
ksz_ptp.h | ||
ksz_ptp_reg.h | ||
ksz_spi.c | ||
lan937x.h | ||
lan937x_main.c | ||
lan937x_reg.h | ||
Makefile |