]> 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)
commit1fad4e64c9378a7d9dd9ebfab3bf379acdbfbfd1
treea9f7fb5073a85b95c10a4b9d78ab2ae0f18b8223
parent1e7b47bf0cc2367fd4080bccdbf31ae7176b4f67
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