diff options
author | Jeppe Ledet-Pedersen <jlp@gomspace.com> | 2015-04-29 17:05:01 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-05-01 10:11:46 +0200 |
commit | 5793affe8c723ece8114b898ab9003c7d97f86d1 (patch) | |
tree | f800108f026f376b55899845adff6f56080787c7 /drivers/net/ethernet/realtek | |
parent | e813bb2b955d9f72c94be7d592746b49929a499b (diff) | |
download | talos-op-linux-5793affe8c723ece8114b898ab9003c7d97f86d1.tar.gz talos-op-linux-5793affe8c723ece8114b898ab9003c7d97f86d1.zip |
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: Jeppe Ledet-Pedersen <jlp@gomspace.com>
Acked-by: Kedareswara rao Appana <appanad@xilinx.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/ethernet/realtek')
0 files changed, 0 insertions, 0 deletions