]> git.baikalelectronics.ru Git - kernel.git/commit
can: m_can: m_can_chip_config(): actually enable internal timestamping
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 23 May 2022 15:18:33 +0000 (17:18 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 4 Jul 2022 09:42:59 +0000 (11:42 +0200)
commitfadba8cfe8ca1fa79bcab087c89fc473d5e669b8
treed905337c4d496aadfca86557e8f48ddd868ec1b7
parent8b9086de20f5b381afd36eec91db115df9fcb8b8
can: m_can: m_can_chip_config(): actually enable internal timestamping

In commit d9679b438a3b ("can: m_can: m_can_chip_config(): enable and
configure internal timestamps") the timestamping in the m_can core
should be enabled. In peripheral mode, the RX'ed CAN frames, TX
compete frames and error events are sorted by the timestamp.

The above mentioned commit however forgot to enable the timestamping.
Add the missing bits to enable the timestamp counter to the write of
the Timestamp Counter Configuration register.

Link: https://lore.kernel.org/all/20220612212708.4081756-1-mkl@pengutronix.de
Fixes: d9679b438a3b ("can: m_can: m_can_chip_config(): enable and configure internal timestamps")
Cc: <stable@vger.kernel.org> # 5.13
Cc: Torin Cooper-Bennun <torin@maxiluxsystems.com>
Reviewed-by: Chandrasekar Ramakrishnan <rcsekar@samsung.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/m_can.c