]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: option to enable PHY WOL with PMT enabled
authorLing Pei Lee <pei.lee.ling@intel.com>
Tue, 29 Jun 2021 03:08:57 +0000 (11:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Jun 2021 18:34:48 +0000 (11:34 -0700)
commitabc9ed418e6bcdd10cb203673bded31a4fc1104a
tree5787bd3f59803ecdcbfa352208888550dc005c1d
parent5cb937d0a082bdf7629f0ddf96ccf080414c8320
net: stmmac: option to enable PHY WOL with PMT enabled

The current stmmac driver WOL implementation will enable MAC WOL
if MAC HW PMT feature is on. Else, the driver will check for
PHY WOL support. There is another case where MAC HW PMT is
enabled but the platform still goes for the PHY WOL option.
E.g, Intel platform are designed for PHY WOL but not MAC WOL
although HW MAC PMT features are enabled.

Introduce use_phy_wol platform data to select PHY WOL
instead of depending on HW PMT features. Set use_phy_wol
will disable the plat->pmt which currently used to
determine the system to wake up by MAC WOL or PHY WOL.

Signed-off-by: Ling Pei Lee <pei.lee.ling@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
include/linux/stmmac.h