summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/microchip/ksz9477.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2023-10-27 14:43:55 -0700
committerJakub Kicinski <kuba@kernel.org>2023-10-27 14:43:55 -0700
commitdfaed0e9f1e7c0a261ece2242294e4f7891dbadb (patch)
treeea76e3a675f8882eb8fa66059b08490def9ae58a /drivers/net/dsa/microchip/ksz9477.h
parent3a04927f8d4b7a4f008f04af41e31173002eb1ea (diff)
parent8afb91acc4a3ea25ce15160df1fcab93b155b75e (diff)
Merge branch 'net-dsa-microchip-provide-wake-on-lan-support-part-2'
Oleksij Rempel says: ==================== net: dsa: microchip: provide Wake on LAN support (part 2) This patch series introduces extensive Wake on LAN (WoL) support for the Microchip KSZ9477 family of switches, coupled with some code refactoring and error handling enhancements. The principal aim is to enable and manage Wake on Magic Packet and other PHY event triggers for waking up the system, whilst ensuring that the switch isn't reset during a shutdown if WoL is active. The Wake on LAN functionality is optional and is particularly beneficial if the PME pins are connected to the SoC as a wake source or to a PMIC that can enable or wake the SoC. ==================== Link: https://lore.kernel.org/r/20231026051051.2316937-1-o.rempel@pengutronix.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz9477.h')
-rw-r--r--drivers/net/dsa/microchip/ksz9477.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/microchip/ksz9477.h b/drivers/net/dsa/microchip/ksz9477.h
index fa8d0318b437..ce1e656b800b 100644
--- a/drivers/net/dsa/microchip/ksz9477.h
+++ b/drivers/net/dsa/microchip/ksz9477.h
@@ -62,6 +62,7 @@ void ksz9477_get_wol(struct ksz_device *dev, int port,
struct ethtool_wolinfo *wol);
int ksz9477_set_wol(struct ksz_device *dev, int port,
struct ethtool_wolinfo *wol);
+void ksz9477_wol_pre_shutdown(struct ksz_device *dev, bool *wol_enabled);
int ksz9477_port_acl_init(struct ksz_device *dev, int port);
void ksz9477_port_acl_free(struct ksz_device *dev, int port);