]> 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)
commitc49dbf2b3a64597954ab8820ced86e1a2855229a
tree2f706021e1fc3c65c4c35586cc422850e81ad877
parent240590377303b82fc9fc3f2466b0645bcc421dc4
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