Commit 30da06ab authored by Jeppe Ledet-Pedersen's avatar Jeppe Ledet-Pedersen Committed by Michal Simek
Browse files

net: can: xilinx_can: fix extended frame handling



Using IDR_SRR in RXFIFO_ID to test for the presence of data is only
valid for standard frames. For extended frames the bit is always 1 and
IDR_RTR should be used instead. This patch switches the check to use
CAN_RTR_FLAG which is correctly set when reading the ID.

The patch also changes the DW1/DW2 to be read unconditionally, since
this is necessary to remove the frame from the RXFIFO.

Signed-off-by: default avatarJeppe Ledet-Pedersen <jlp@gomspace.com>
Acked-by: default avatarKedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 94d7d190
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment