ptp_qoriq: fix interrupt enabling and handling
authorYangbo Lu <yangbo.lu@nxp.com>
Mon, 21 Jan 2019 10:41:38 +0000 (18:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jan 2019 04:21:57 +0000 (20:21 -0800)
commitb0bc10cc8887214c997bfe4f47217b04db4733a2
treed9265916dd5e46293bd5fdfc32f85f183e956123
parented175d9c6f0d4df0f83f22ff4c887c21b7d021cd
ptp_qoriq: fix interrupt enabling and handling

The tmr_tevent register would update event bits
no matter tmr_temask bits were set or not. So we
should get interrupts by tmr_tevent & tmr_temask,
and clean up interrupts in tmr_tevent before
enabling them.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_qoriq.c