summaryrefslogtreecommitdiff
path: root/include/linux/stmp_device.h
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2021-09-07 13:56:46 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-09-22 13:39:28 +0300
commiteb3eeb31738507165b26f2ddbb8792750fd1e03e (patch)
tree8383aeb65d7038f81a7b9a64494f57916e86908d /include/linux/stmp_device.h
parent54f62219145cb01e87b685449eeba6b04b584176 (diff)
downloadlinux-eb3eeb31738507165b26f2ddbb8792750fd1e03e.tar.xz
net: phylink: add suspend/resume support
[ Upstream commit f97493657c6372eeefe70faadd214bf31488c44e ] Joakim Zhang reports that Wake-on-Lan with the stmmac ethernet driver broke when moving the incorrect handling of mac link state out of mac_config(). This reason this breaks is because the stmmac's WoL is handled by the MAC rather than the PHY, and phylink doesn't cater for that scenario. This patch adds the necessary phylink code to handle suspend/resume events according to whether the MAC still needs a valid link or not. This is the barest minimum for this support. Reported-by: Joakim Zhang <qiangqing.zhang@nxp.com> Tested-by: Joakim Zhang <qiangqing.zhang@nxp.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/stmp_device.h')
0 files changed, 0 insertions, 0 deletions