]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: a port can be disabled even if we use the link IRQ
authorAntoine Tenart <antoine.tenart@bootlin.com>
Fri, 1 Mar 2019 10:52:06 +0000 (11:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Mar 2019 07:23:34 +0000 (23:23 -0800)
commit70ab70db9cb6fbfe86432749e8dbc2e0c0819965
tree2f706021e1fc3c65c4c35586cc422850e81ad877
parent00446a2e50ecdfc37de04f9c754513cbf3d029b9
net: mvpp2: a port can be disabled even if we use the link IRQ

We had a check in the mvpp2_mac_link_down() function (called by phylink)
to avoid disabling the port when link interrupts are used. It turned out
the interrupt can still be used with the port disabled. We can thus
remove this check.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c