net: fec: return IRQ_HANDLED if fec_ptp_check_pps_event handled it
authorTroy Kisky <troy.kisky@boundarydevices.com>
Wed, 20 Sep 2017 00:33:09 +0000 (17:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Sep 2017 22:47:31 +0000 (15:47 -0700)
fec_ptp_check_pps_event will return 1 if FEC_T_TF_MASK caused
an interrupt. Don't return IRQ_NONE in this case.

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c

index 464055fb33d55559705fd5f1051f2a4ebeb09cb6..3dc2d771a222147c89a3814a34d736e0bcf0d5c4 100644 (file)
@@ -1604,8 +1604,8 @@ fec_enet_interrupt(int irq, void *dev_id)
        }
 
        if (fep->ptp_clock)
-               fec_ptp_check_pps_event(fep);
-
+               if (fec_ptp_check_pps_event(fep))
+                       ret = IRQ_HANDLED;
        return ret;
 }