From: Marc Kleine-Budde Date: Mon, 17 Jul 2023 14:41:23 +0000 (+0200) Subject: Merge patch series "can: gs_usb: fix time stamp counter initialization" X-Git-Tag: v6.6.17~4350^2~19^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc050849d93f4c5d8a88dc6789668212b7785967;p=platform%2Fkernel%2Flinux-rpi.git Merge patch series "can: gs_usb: fix time stamp counter initialization" Marc Kleine-Budde says: During testing I noticed a crash if unloading/loading the gs_usb driver during high CAN bus load. The current version of the candlelight firmware doesn't flush the queues of the received CAN frames during the reset command. This leads to a crash if hardware timestamps are enabled, and an URB from the device is received before the cycle counter/time counter infrastructure has been setup. First clean up then error handling in gs_can_open(). Then, fix the problem by converting the cycle counter/time counter infrastructure from a per-channel to per-device and set it up before submitting RX-URBs to the USB stack. Link: https://lore.kernel.org/all/20230716-gs_usb-fix-time-stamp-counter-v1-0-9017cefcd9d5@pengutronix.de Signed-off-by: Marc Kleine-Budde --- dc050849d93f4c5d8a88dc6789668212b7785967