summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorStephane Grosjean <s.grosjean@peak-system.com>2020-10-14 11:56:31 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2020-11-04 00:30:32 +0300
commitecc7b4187dd388549544195fb13a11b4ea8e6a84 (patch)
treea5940b08d5dda24c8c7446aa7280ae114bb9c5d9 /drivers/spi
parenta6921dd524fe31d1f460c161d3526a407533b6db (diff)
downloadlinux-ecc7b4187dd388549544195fb13a11b4ea8e6a84.tar.xz
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: bb4785551f64 ("can: usb: PEAK-System Technik USB adapters driver core") Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/spi')
0 files changed, 0 insertions, 0 deletions