]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: phy: marvell: clear wol event before setting it
authorJingju Hou <Jingju.Hou@synaptics.com>
Mon, 23 Apr 2018 07:22:49 +0000 (15:22 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 1 Oct 2018 12:55:33 +0000 (14:55 +0200)
commit16edc390600a2163b80f952d92c10b1b1f501e21
tree3839ce8bdc950348808875c75cf02ddb8a8f00fd
parent53356d761260785191a78a47eb683c22662bc7f5
net: phy: marvell: clear wol event before setting it

BugLink: http://bugs.launchpad.net/bugs/1794889
[ Upstream commit b6a930fa88083b41d26ddf1cab95cbd740936c22 ]

If WOL event happened once, the LED[2] interrupt pin will not be
cleared unless we read the CSISR register. If interrupts are in use,
the normal interrupt handling will clear the WOL event. Let's clear the
WOL event before enabling it if !phy_interrupt_is_valid().

Signed-off-by: Jingju Hou <Jingju.Hou@synaptics.com>
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/phy/marvell.c