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)
commit2b1a4547c122dcb9999e1a876236b44408c7d01c
tree6be62423bd8afc17d6e66a4099d89e11c9d2bad9
parent3cc9358fb51f160e78746fce4adb60b913fb5cc1
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