can: xilinx_can: fix the data update logic for CANFD FD frames
authorAppana Durga Kedareswara rao <appana.durga.rao@xilinx.com>
Mon, 12 Aug 2019 10:06:44 +0000 (15:36 +0530)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 13 Aug 2019 15:31:26 +0000 (17:31 +0200)
commite6997dd2688403bf8f760bd9fd7ddb5c654bc8bd
tree0ea96654647b0d51d408e9e164cacfe67f579d52
parent93bbd6c5eeb1dbc1f826b4924c21dc71d14b25c8
can: xilinx_can: fix the data update logic for CANFD FD frames

commit c223da689324 ("can: xilinx_can: Add support for CANFD FD frames")
is writing data to a wrong offset for FD frames.

This patch fixes this issue.

Fixes: c223da6 ("can: xilinx_can: Add support for CANFD FD frames")
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Reviewed-by: Shubhrajyoti Datta <Shubhrajyoti.datta@xilinx.com>
Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/xilinx_can.c