]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: stmmac: only call pmt() during suspend/resume if HW enables PMT
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Mon, 27 Jul 2020 11:02:48 +0000 (19:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jul 2020 00:48:20 +0000 (17:48 -0700)
commite8377e7a29efbe80668b638eccd58f8db3c9ecb7
tree68f049e8efa34eca03ec64636bdc2750e7085739
parent2f45f7a13e99ef2d05ef3afecaee30f314c9b8b2
net: stmmac: only call pmt() during suspend/resume if HW enables PMT

This is to prepare WOL support with phy. Compared with WOL
implementation which relies on the MAC's PMT features, in phy
supported WOL case, device_may_wakeup() may also be true, but we
should not call mac's pmt() function if HW doesn't enable PMT.

And during resume, we should call phylink_start() if PMT is disabled.

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