can: xilinx_can: use correct bittiming_const for CAN FD core
authorAnssi Hannula <anssi.hannula@bitwise.fi>
Tue, 11 Sep 2018 11:47:46 +0000 (14:47 +0300)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 7 Jun 2019 21:03:53 +0000 (23:03 +0200)
commit904044dd8fff43e289c11a2f90fa532e946a1d8b
treeeae4bf6e95aea2d48528c964c04f01ceea212278
parent247e5356a709eb49a0d95ff2a7f07dac05c8252c
can: xilinx_can: use correct bittiming_const for CAN FD core

Commit 9e5f1b273e6a ("can: xilinx_can: add support for Xilinx CAN FD
core") added a new can_bittiming_const structure for CAN FD cores that
support larger values for tseg1, tseg2, and sjw than previous Xilinx CAN
cores, but the commit did not actually take that into use.

Fix that.

Tested with CAN FD core on a ZynqMP board.

Fixes: 9e5f1b273e6a ("can: xilinx_can: add support for Xilinx CAN FD core")
Reported-by: Shubhrajyoti Datta <shubhrajyoti.datta@gmail.com>
Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi>
Cc: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Shubhrajyoti Datta <shubhrajyoti.datta@gmail.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/xilinx_can.c