]> 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)
commit74945e173e602a8e3307ff024fb1edb7d983d850
treed9265916dd5e46293bd5fdfc32f85f183e956123
parent5140b6805367d7d499fbecf28709c763f93cbf23
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