can: xilinx_can: add Transmitter Delay Compensation (TDC) feature support
authorSrinivas Neeli <srinivas.neeli@xilinx.com>
Thu, 9 Jun 2022 10:31:57 +0000 (16:01 +0530)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 11 Jun 2022 14:42:30 +0000 (16:42 +0200)
commit1010a8fa96086d746251954e709f9fad751b1f0a
tree3a252e446039503f391ccf6517a9eb2b1497e12d
parent27f2533bcc6e909b85d3c1b738fa1f203ed8a835
can: xilinx_can: add Transmitter Delay Compensation (TDC) feature support

This patch adds Transmitter Delay Compensation (TDC) feature support.

In the case of higher measured loop delay with higher bit rates, bit
stuff errors are observed. Enabling the TDC feature in CAN-FD
controllers will compensate for the measured loop delay in the receive
path.

Link: https://lore.kernel.org/all/20220609103157.1425730-1-srinivas.neeli@xilinx.com
Signed-off-by: Srinivas Neeli <srinivas.neeli@xilinx.com>
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
[mkl: fix indention]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/xilinx_can.c