]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: DP83822: Fix WoL in config init to be disabled
authorDan Murphy <dmurphy@ti.com>
Tue, 28 Apr 2020 16:03:53 +0000 (11:03 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 22:23:44 +0000 (15:23 -0700)
commit21f82305ee677504a14a384310c6e4fdfe8dc9c7
tree4c4db212a5025b15fd2b12c4ac40a9c57b5d05c3
parentd0fff8eb30f0173dee4495c0bd69f2ae4c16b1ed
net: phy: DP83822: Fix WoL in config init to be disabled

The WoL feature should be disabled when config_init is called and the
feature should turned on or off  when set_wol is called.

In addition updated the calls to modify the registers to use the set_bit
and clear_bit function calls.

Fixes: 3b427751a9d0 ("net: phy: DP83822 initial driver submission")
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83822.c