]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Support WOL with phy
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Mon, 27 Jul 2020 11:03:09 +0000 (19:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jul 2020 00:48:20 +0000 (17:48 -0700)
commit90dfa4dab77cde3505f5770a4d74ba2a190bdf9d
tree604bc0caaccad6852d0e84676c8eb250ef0f0f01
parentc800de16d66c2bf5f8f34af64a15af5e8d16fbb7
net: stmmac: Support WOL with phy

Currently, the stmmac driver WOL implementation relies on MAC's PMT
feature. We have a case: the MAC HW doesn't enable PMT, instead, we
rely on the phy to support WOL. Implement the support for this case.

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c