Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8c2df18 authored by Florian Fainelli's avatar Florian Fainelli Committed by Greg Kroah-Hartman
Browse files

net: bcmgenet: Poll internal PHY for GENETv5



[ Upstream commit 64bd9c8135751b561f27edaaffe93d07093f81af ]

On GENETv5, there is a hardware issue which prevents the GENET hardware
from generating a link UP interrupt when the link is operating at
10Mbits/sec. Since we do not have any way to configure the link
detection logic, fallback to polling in that case.

Fixes: 42138085 ("net: bcmgenet: add support for the GENETv5 hardware")
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 71944eb5
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -339,9 +339,12 @@ int bcmgenet_mii_probe(struct net_device *dev)
	phydev->advertising = phydev->supported;

	/* The internal PHY has its link interrupts routed to the
	 * Ethernet MAC ISRs
	 * Ethernet MAC ISRs. On GENETv5 there is a hardware issue
	 * that prevents the signaling of link UP interrupts when
	 * the link operates at 10Mbps, so fallback to polling for
	 * those versions of GENET.
 	 */
	if (priv->internal_phy)
	if (priv->internal_phy && !GENET_IS_V5(priv))
		priv->phydev->irq = PHY_IGNORE_INTERRUPT;

	return 0;