OpenCloudOS-Kernel/drivers/net/can/usb
Stephane Grosjean ecc7b4187d can: peak_usb: peak_usb_get_ts_time(): fix timestamp wrapping
Fabian Inostroza <fabianinostrozap@gmail.com> has discovered a potential
problem in the hardware timestamp reporting from the PCAN-USB USB CAN interface
(only), related to the fact that a timestamp of an event may precede the
timestamp used for synchronization when both records are part of the same USB
packet. However, this case was used to detect the wrapping of the time counter.

This patch details and fixes the two identified cases where this problem can
occur.

Reported-by: Fabian Inostroza <fabianinostrozap@gmail.com>
Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Link: https://lore.kernel.org/r/20201014085631.15128-1-s.grosjean@peak-system.com
Fixes: bb4785551f ("can: usb: PEAK-System Technik USB adapters driver core")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2020-11-03 22:30:32 +01:00
..
kvaser_usb can: kvaser_usb: fix interface sanity check 2020-01-02 15:34:27 +01:00
peak_usb can: peak_usb: peak_usb_get_ts_time(): fix timestamp wrapping 2020-11-03 22:30:32 +01:00
Kconfig can: drivers: fix spelling mistakes 2020-09-21 10:13:16 +02:00
Makefile can: kvaser_usb: Split driver into kvaser_usb_core.c and kvaser_usb_leaf.c 2018-07-27 10:40:19 +02:00
ems_usb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 164 2019-05-30 11:26:38 -07:00
esd_usb2.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 164 2019-05-30 11:26:38 -07:00
gs_usb.c can: drivers: fix spelling mistakes 2020-09-21 10:13:16 +02:00
mcba_usb.c can: mcba_usb: remove redundant initialization of variable err 2020-09-21 10:13:17 +02:00
ucan.c can: drivers: fix spelling mistakes 2020-09-21 10:13:16 +02:00
usb_8dev.c can: drivers: fix spelling mistakes 2020-09-21 10:13:16 +02:00