]> 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)
commitcb026a88f9dd81bf7240abe4d2e1310ec854439d
tree4c4db212a5025b15fd2b12c4ac40a9c57b5d05c3
parent928ced599f54eff2757c5c3b29040787c3de38fe
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