]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit570aadd9deaddbafbcce7024c38b52f1e69d1a6d
treea9f7fb5073a85b95c10a4b9d78ab2ae0f18b8223
parent9ce22273cac3be716a23e12311dbf706a8a4fbe4
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