net: can: ifi: Configure transmitter delay
authorMarek Vasut <marex@denx.de>
Mon, 19 Sep 2016 19:34:01 +0000 (21:34 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 21 Sep 2016 08:32:24 +0000 (10:32 +0200)
commit8d58790b832e13d6006d842037732304af357c3c
tree959472dcb010b91b1c72accdfdfbe7ace34fb379
parentb5036cd4ed3173ab8cdbc85e2ba74acf46bafb51
net: can: ifi: Configure transmitter delay

Configure the transmitter delay register at +0x1c to correctly handle
the CAN FD bitrate switch (BRS). This moves the SSP (secondary sample
point) to a proper offset, so that the TDC mechanism works and won't
generate error frames on the CAN link.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Oliver Hartkopp <socketcan@hartkopp.net>
Cc: Wolfgang Grandegger <wg@grandegger.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/ifi_canfd/ifi_canfd.c