net: phy: DP83TC811: Fix WoL in config init to be disabled
authorDan Murphy <dmurphy@ti.com>
Tue, 28 Apr 2020 16:03:54 +0000 (11:03 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 22:23:44 +0000 (15:23 -0700)
commit6c599044b0c1c6668c5132ec86e11f3d06816ab8
tree44c94ceb3b2ca88d914f2df8e3a99ac67ce8084f
parent600ac36b5327c949f6754be106e2a08e5d81e3a0
net: phy: DP83TC811: 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: 6d749428788b ("net: phy: DP83TC811: Introduce support for the
DP83TC811 phy")
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83tc811.c