OSDN Git Service

net: phy: at803x: improve the WOL feature
authorLuo Jie <luoj@codeaurora.org>
Sun, 24 Oct 2021 08:27:27 +0000 (16:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Oct 2021 13:04:18 +0000 (14:04 +0100)
commit7beecaf7d507b64ef1d6210835aec6ed4e64f30a
treea9f7fb5073a85b95c10a4b9d78ab2ae0f18b8223
parent2d4284e88a59114f2f02b60da4977b49ace149bc
net: phy: at803x: improve the WOL feature

The wol feature is controlled by the MMD3.8012 bit5,
need to set this bit when the wol function is enabled.

The reg18 bit0 is for enabling WOL interrupt, when wol
occurs, the wol interrupt status reg19 bit0 is set to 1.

Call phy_trigger_machine if there are any other interrupt
pending in the function set_wol.

Signed-off-by: Luo Jie <luoj@codeaurora.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/at803x.c