]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite11d74a7cc175b5e0165067769ead0109d1f48c0
treed9265916dd5e46293bd5fdfc32f85f183e956123
parent333d18c483b10339a2976b4b67ea4775ef289ff6
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