From: Petri Gynther Date: Mon, 30 Mar 2015 07:29:35 +0000 (-0700) Subject: net: bcmgenet: fix the call to phy_mac_interrupt() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=451e1ca2ab68b9184379fde7867f278c4b3efc61;p=linux-beck.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c index bf1a8711dbc0..f7855a61e7ad 100644 --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c @@ -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; } }