aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorLukas Wunner <[email protected]>2018-05-09 14:43:43 +0200
committerMarc Kleine-Budde <[email protected]>2018-05-10 18:25:30 +0200
commit32bee8f48fa048a3198109de50e51c092507ff52 (patch)
tree30093cd3843728a93f710d05ae663f8bf7bbea2d /tools/perf/scripts/python/export-to-postgresql.py
parent5cec9425b41dcf834c3d48776900d6acb7e96f38 (diff)
can: hi311x: Work around TX complete interrupt erratum
When sending packets as fast as possible using "cangen -g 0 -i -x", the HI-3110 occasionally latches the interrupt pin high on completion of a packet, but doesn't set the TXCPLT bit in the INTF register. The INTF register contains 0x00 as if no interrupt has occurred. Even waiting for a few milliseconds after the interrupt doesn't help. Work around this apparent erratum by instead checking the TXMTY bit in the STATF register ("TX FIFO empty"). We know that we've queued up a packet for transmission if priv->tx_len is nonzero. If the TX FIFO is empty, transmission of that packet must have completed. Note that this is congruent with our handling of received packets, which likewise gleans from the STATF register whether a packet is waiting in the RX FIFO, instead of looking at the INTF register. Cc: Mathias Duckeck <[email protected]> Cc: Akshay Bhat <[email protected]> Cc: Casey Fitzpatrick <[email protected]> Cc: [email protected] # v4.12+ Signed-off-by: Lukas Wunner <[email protected]> Acked-by: Akshay Bhat <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions