summaryrefslogtreecommitdiff
path: root/drivers/remoteproc/meson_mx_ao_arc.c
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2023-10-26 07:10:47 +0200
committerJakub Kicinski <kuba@kernel.org>2023-10-27 14:43:52 -0700
commit3b454b6390c32d5a6a31ee67f510095b138264d1 (patch)
tree85d277b0da32cfe3b677b0bb9859bf56ebfad1cc /drivers/remoteproc/meson_mx_ao_arc.c
parent3a04927f8d4b7a4f008f04af41e31173002eb1ea (diff)
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>
Diffstat (limited to 'drivers/remoteproc/meson_mx_ao_arc.c')
0 files changed, 0 insertions, 0 deletions