net: phy: smsc: add WoL support to LAN8740/LAN8742 PHYs
authorTristram Ha <Tristram.Ha@microchip.com>
Tue, 25 Jul 2023 23:54:30 +0000 (16:54 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 27 Jul 2023 04:24:40 +0000 (21:24 -0700)
commit8b305ee2a91c3c4c89cb82ea940265b247eb0a13
treea88f1e3c0ca5e20b6f193a6a4ad0873b010dcaae
parent2303fae130640874823ea1bc7ec65c3cd074a7eb
net: phy: smsc: add WoL support to LAN8740/LAN8742 PHYs

Microchip LAN8740/LAN8742 PHYs support basic unicast, broadcast, and
Magic Packet WoL.  They have one pattern filter matching up to 128 bytes
of frame data, which can be used to implement ARP or multicast WoL.

ARP WoL matches any ARP frame with broadcast address.

Multicast WoL matches any multicast frame.

Signed-off-by: Tristram Ha <Tristram.Ha@microchip.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/1690329270-2873-1-git-send-email-Tristram.Ha@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/Kconfig
drivers/net/phy/smsc.c
include/linux/smscphy.h