can: peak_usb: CANFD: store 64-bits hw timestamps
authorStephane Grosjean <s.grosjean@peak-system.com>
Thu, 30 Sep 2021 09:46:03 +0000 (11:46 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 24 Oct 2021 14:26:05 +0000 (16:26 +0200)
commit28e0a70cede3fa6835e36302207776831cc41b8b
tree84e610f72dbffe7af1b6a0eaee3cde6979a3a336
parent108194666a3f59ccaf22ff560a038ee0d7355a86
can: peak_usb: CANFD: store 64-bits hw timestamps

This patch allows to use the whole 64-bit timestamps received from the
CAN-FD device (expressed in µs) rather than only its low part, in the
hwtstamp structure of the skb transferred to the network layer, when a
CAN/CANFD frame has been received.

Link: https://lore.kernel.org/all/20210930094603.23134-1-s.grosjean@peak-system.com
Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/peak_usb/pcan_usb_core.c
drivers/net/can/usb/peak_usb/pcan_usb_core.h
drivers/net/can/usb/peak_usb/pcan_usb_fd.c