]> git.baikalelectronics.ru Git - kernel.git/commit
can: peak_canfd: provide hw timestamps in rx skbs
authorStephane Grosjean <s.grosjean@peak-system.com>
Mon, 16 Sep 2019 14:15:44 +0000 (16:15 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 11 Nov 2019 20:58:09 +0000 (21:58 +0100)
commit901bd6cd5278b444e4aba69b53022d70bd071e4a
tree6be62423bd8afc17d6e66a4099d89e11c9d2bad9
parentf62a833fb81828149961ae3cb5edbc276325ca2a
can: peak_canfd: provide hw timestamps in rx skbs

PEAK-System's CAN FD interfaces based on an IP core provide a timestamp
for each CAN and STATUS message received. This patch transfers these
received timestamps (clocked in microseconds) to hardware timestamps
(clocked in nanoseconds) in the corresponding skbs raised to the network
layer.

Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/peak_canfd/peak_canfd.c