linux/drivers/net/dsa/microchip
Oleksij Rempel 3b454b6390 net: dsa: microchip: ksz9477: Add Wake on Magic Packet support
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>
2023-10-27 14:43:52 -07:00
..
Kconfig
ksz8.h net: dsa: microchip: Remove unused declarations 2023-08-22 10:28:13 -07:00
ksz8795.c net: dsa: microchip: ksz8: Enable MIIM PHY Control reg access 2023-10-20 11:50:46 +01:00
ksz8795_reg.h net: dsa: microchip: move REG_SW_MAC_ADDR to dev->info->regs[] 2023-10-03 13:51:02 +02:00
ksz8863_smi.c
ksz9477.c net: dsa: microchip: ksz9477: Add Wake on Magic Packet support 2023-10-27 14:43:52 -07:00
ksz9477.h net: dsa: microchip: ksz9477: add Wake on LAN support 2023-10-25 08:47:33 +01:00
ksz9477_acl.c net: dsa: microchip: Fix uninitialized var in ksz9477_acl_move_entries() 2023-10-10 11:12:01 +02:00
ksz9477_i2c.c
ksz9477_reg.h net: dsa: microchip: move REG_SW_MAC_ADDR to dev->info->regs[] 2023-10-03 13:51:02 +02:00
ksz9477_tc_flower.c net: dsa: microchip: Add partial ACL support for ksz9477 switches 2023-09-17 14:28:34 +01:00
ksz_common.c net: dsa: microchip: ksz9477: Add Wake on Magic Packet support 2023-10-27 14:43:52 -07:00
ksz_common.h net: dsa: microchip: ksz9477: Add Wake on Magic Packet support 2023-10-27 14:43:52 -07:00
ksz_ptp.c net: dsa: Use conduit and user terms 2023-10-24 13:08:14 -07:00
ksz_ptp.h
ksz_ptp_reg.h
ksz_spi.c
lan937x.h
lan937x_main.c
lan937x_reg.h
Makefile net: dsa: microchip: Add partial ACL support for ksz9477 switches 2023-09-17 14:28:34 +01:00