Re: [PATCH] net: can: xilinx_can: fix extended frame handling

2015-05-01 Thread Marc Kleine-Budde
On 04/29/2015 05:05 PM, Jeppe Ledet-Pedersen wrote: > 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

[PATCH] net: can: xilinx_can: fix extended frame handling

2015-04-29 Thread Jeppe Ledet-Pedersen
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/DW