net: mvpp2: use the GoP interrupt for link status changes
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Fri, 1 Sep 2017 09:04:54 +0000 (11:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Sep 2017 17:08:35 +0000 (10:08 -0700)
commitfd3651b2ab66de177ad0d51c239af260a764b9f1
treefd5a63402c0319b2749f4acf7c2482d9691f56e8
parent5997c86bf0e94f0b29f9ab416b1db62a8fa4e4eb
net: mvpp2: use the GoP interrupt for link status changes

This patch adds the GoP link interrupt support for when a port isn't
connected to a PHY. Because of this the phylib callback is never called
and the link status management isn't done. This patch use the GoP link
interrupt in such cases to still have a minimal link management. Without
this patch ports not connected to a PHY cannot work.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Tested-by: Marcin Wojtas <mw@semihalf.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c