]> git.baikalelectronics.ru Git - kernel.git/commit
ptp_qoriq: check valid status before reading extts fifo
authorYangbo Lu <yangbo.lu@nxp.com>
Thu, 12 Dec 2019 10:08:04 +0000 (18:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Dec 2019 23:56:41 +0000 (15:56 -0800)
commit0a50e944529f336494169bd42d6831396ed867eb
treeda78b7655e4d02ba7aabb8a347d0c37ba474a73e
parentd9f43bbe33f7251bc4dd093a027b306f8372f261
ptp_qoriq: check valid status before reading extts fifo

For PTP timer supporting external trigger timestamp FIFO,
there is a valid bit in TMR_STAT register indicating the
timestamp is available. For PTP timer without FIFO, there
is not TMR_STAT register.
This patch is to check the valid bit for the FIFO before
reading timestamp, and to avoid operating TMR_STAT register
for PTP timer without the FIFO.

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