linux/drivers/net/can
Jeppe Ledet-Pedersen a463342c4d net: can: xilinx_can: fix extended frame handling
commit 5793affe8c upstream.

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: Jeppe Ledet-Pedersen <jlp@gomspace.com>
Acked-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
History 2015-05-28 09:59:59 +01:00
..
c_can can: c_can: end pending transmission on network stop (ifdown) 2015-02-04 10:58:06 +00:00
cc770 can: Unify MTU settings for CAN interfaces 2014-03-17 09:20:16 +01:00
mscan can: mscan: Fix Kconfig dependencies 2014-05-19 09:38:21 +02:00
sja1000 can: peak_pci: prevent use after free at netdev removal 2014-05-21 08:17:03 +02:00
softing can: softing: remove unused sysfs attributes 2014-04-25 00:09:03 +02:00
spi can: mcp251x: fix coccinelle warnings 2014-05-19 09:38:07 +02:00
usb can: kvaser_usb: Fix tx queue start/stop race conditions 2015-03-30 11:11:34 +01:00
at91_can.c can: at91_can: add missing prepare and unprepare of the clock 2014-11-05 14:14:45 +00:00
bfin_can.c can: Unify MTU settings for CAN interfaces 2014-03-17 09:20:16 +01:00
dev.c can: add missing initialisations in CAN related skbuffs 2015-03-23 15:16:47 +00:00
flexcan.c can: flexcan: Deferred on Regulator return EPROBE_DEFER 2015-04-13 16:48:56 +01:00
grcan.c can: Unify MTU settings for CAN interfaces 2014-03-17 09:20:16 +01:00
janz-ican3.c can: Unify MTU settings for CAN interfaces 2014-03-17 09:20:16 +01:00
Kconfig can: xilinx CAN controller support 2014-05-26 09:36:31 +02:00
led.c can: only rename enabled led triggers when changing the netdev name 2014-05-27 15:05:41 +02:00
Makefile can: xilinx CAN controller support 2014-05-26 09:36:31 +02:00
pch_can.c can: Unify MTU settings for CAN interfaces 2014-03-17 09:20:16 +01:00
rcar_can.c can: add Renesas R-Car CAN driver 2014-05-19 09:38:23 +02:00
slcan.c slcan: Port write_wakeup deadlock fix from slip 2014-06-16 21:29:13 -07:00
ti_hecc.c can: Unify MTU settings for CAN interfaces 2014-03-17 09:20:16 +01:00
vcan.c can: add destructor for self generated skbs 2014-01-30 16:25:49 -08:00
xilinx_can.c net: can: xilinx_can: fix extended frame handling 2015-05-28 09:59:59 +01:00