diff options
author | Yangbo Lu <yangbo.lu@nxp.com> | 2019-12-12 18:08:04 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-16 15:56:41 -0800 |
commit | 10bc877c762339b8501a5b397137cf2f47cde575 (patch) | |
tree | da78b7655e4d02ba7aabb8a347d0c37ba474a73e /drivers/tty | |
parent | tcp: Set rcv zerocopy hint correctly if skb last frag is < PAGE_SIZE (diff) | |
download | linux-dev-10bc877c762339b8501a5b397137cf2f47cde575.tar.xz linux-dev-10bc877c762339b8501a5b397137cf2f47cde575.zip |
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>
Diffstat (limited to 'drivers/tty')
0 files changed, 0 insertions, 0 deletions