diff options
author | Jimmy Assarsson <[email protected]> | 2023-05-16 15:43:17 +0200 |
---|---|---|
committer | Marc Kleine-Budde <[email protected]> | 2023-05-17 09:02:40 +0200 |
commit | 262d7a52ba27525e3c1203230c9f0524e48bbb34 (patch) | |
tree | 12ea0a4183144de94e12bf8ef1aa9dcf6bb5b3cb /lib/mpi/mpiutil.c | |
parent | c589557dd1426f5adf90c7a919d4fde5a3e4ef64 (diff) |
can: kvaser_pciefd: Do not send EFLUSH command on TFD interrupt
Under certain circumstances we send two EFLUSH commands, resulting in two
EFLUSH ack packets, while only expecting a single EFLUSH ack.
This can cause the driver Tx flush completion to get out of sync.
To avoid this problem, don't enable the "Transmit buffer flush done" (TFD)
interrupt and remove the code handling it.
Now we only send EFLUSH command after receiving status packet with
"Init detected" (IDET) bit set.
Fixes: 26ad340e582d ("can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices")
Cc: [email protected]
Signed-off-by: Jimmy Assarsson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions