]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: phy: fix phy_start to consider PHY_IGNORE_INTERRUPT
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 8 Feb 2018 20:01:48 +0000 (21:01 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 15 Mar 2018 13:28:01 +0000 (08:28 -0500)
commitd55a9e3e86fb93f7d8ea250cb41394687a6f8a90
tree290924baf302cab8525f21874c06c93fde7796a1
parent0ff59f966a599480ae4f9a1c6200f4174d6690ff
net: phy: fix phy_start to consider PHY_IGNORE_INTERRUPT

BugLink: http://bugs.launchpad.net/bugs/1755179
[ Upstream commit 08f5138512180a479ce6b9d23b825c9f4cd3be77 ]

This condition wasn't adjusted when PHY_IGNORE_INTERRUPT (-2) was added
long ago. In case of PHY_IGNORE_INTERRUPT the MAC interrupt indicates
also PHY state changes and we should do what the symbol says.

Fixes: 84a527a41f38 ("net: phylib: fix interrupts re-enablement in phy_start")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/net/phy/phy.c