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)
commit600ac36b5327c949f6754be106e2a08e5d81e3a0
tree4c4db212a5025b15fd2b12c4ac40a9c57b5d05c3
parent8f34e53b60b337e559f1ea19e2780ff95ab2fa65
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