summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorViorel Suman <viorel.suman@nxp.com>2022-05-27 11:49:34 +0300
committerJakub Kicinski <kuba@kernel.org>2022-05-30 21:21:25 -0700
commitd7cd5e06c9dd70a82f1461c7b5f676bc03f5cd61 (patch)
tree1774cd2123d1acef9f453188414d29d2ec2b2dfc /net
parent3a2cd89bfbeb10012eb90857ce641d34f0151c4c (diff)
downloadlinux-rpi-d7cd5e06c9dd70a82f1461c7b5f676bc03f5cd61.tar.gz
linux-rpi-d7cd5e06c9dd70a82f1461c7b5f676bc03f5cd61.tar.bz2
linux-rpi-d7cd5e06c9dd70a82f1461c7b5f676bc03f5cd61.zip
net: phy: at803x: disable WOL at probe
Before 7beecaf7d507b ("net: phy: at803x: improve the WOL feature") patch "at803x_get_wol" implementation used AT803X_INTR_ENABLE_WOL value to set WAKE_MAGIC flag, and now AT803X_WOL_EN value is used for the same purpose. The problem here is that the values of these two bits are different after hardware reset: AT803X_INTR_ENABLE_WOL=0 after hardware reset, but AT803X_WOL_EN=1. So now, if called right after boot, "at803x_get_wol" will set WAKE_MAGIC flag, even if WOL function is not enabled by calling "at803x_set_wol" function. The patch disables WOL function on probe thus the behavior is consistent. Fixes: 7beecaf7d507b ("net: phy: at803x: improve the WOL feature") Signed-off-by: Viorel Suman <viorel.suman@nxp.com> Link: https://lore.kernel.org/r/20220527084935.235274-1-viorel.suman@oss.nxp.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions