]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:51:25 +0000 (19:51 +0100)
commitf503436c5e3b1c01c402c18220de910ec85130ec
treeb69221b97c46f40681d070bf4f6e71c328cdf9f5
parentc90279de2b9936a79e3b303515f9a5b31284359b
can: peak_usb: CANFD: store 64-bits hw timestamps

[ Upstream commit 28e0a70cede3fa6835e36302207776831cc41b8b ]

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>
Stable-dep-of: 9e66242504f4 ("can: c_can: c_can_handle_bus_err(): update statistics if skb allocation fails")
Signed-off-by: Sasha Levin <sashal@kernel.org>
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