]> 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)
commitcebdee715c341426caef81d983c83b7c3dd105fc
tree6be62423bd8afc17d6e66a4099d89e11c9d2bad9
parent8a3a6b5e099354fd8a34bf5b5907a6ed53e98c56
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