net: bcmgenet: fix the call to phy_mac_interrupt()
Subsystems (3)
PATCH v2 5/5 net: bcmgenet: fix the call to phy_mac_interrupt()
On phy_mac_interrupt() call, the new_link parameter should be 0 or 1.
Signed-off-by Petri Gynther <[email protected]>
--- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/broadcom/genet/bcmgenet.c +1 -1
@@ -2273,7 +2273,7 @@ static void bcmgenet_irq_task(struct work_struct *work)if ((priv->hw_params->flags &GENET_HAS_MDIO_INTR ) && (priv->irq0_stat &UMAC_IRQ_LINK_EVENT )) {phy_mac_interrupt (priv->phydev, - priv->irq0_stat &UMAC_IRQ_LINK_UP ); + !!(priv->irq0_stat &UMAC_IRQ_LINK_UP )); priv->irq0_stat &= ~UMAC_IRQ_LINK_EVENT ; } }
Signature · 1 line
2.2.0.rc0.207.ga3a616c