diff options
author | 2017-09-19 17:33:09 -0700 | |
---|---|---|
committer | 2017-09-20 15:47:31 -0700 | |
commit | e24ee2780a1d6786b94139ebf95b44c9ae62bf13 (patch) | |
tree | 4c4b98db31c21621dab8b26b6e7006eccac22ce8 /drivers/net/ethernet/freescale | |
parent | net: fec: remove unused interrupt FEC_ENET_TS_TIMER (diff) | |
download | linux-e24ee2780a1d6786b94139ebf95b44c9ae62bf13.tar.gz linux-e24ee2780a1d6786b94139ebf95b44c9ae62bf13.tar.bz2 linux-e24ee2780a1d6786b94139ebf95b44c9ae62bf13.zip |
net: fec: return IRQ_HANDLED if fec_ptp_check_pps_event handled it
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>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r-- | drivers/net/ethernet/freescale/fec_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index 464055fb33d5..3dc2d771a222 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -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; } |