Am 03.07.24 um 15:10 schrieb Umang Jain:
This is a re-attempt of [1] where we noticed corruption of vc04 firmware on stopping the kthread. After investigation, I found that the case where wait_event_interruptible() can return early(wait failed) with -ERESTARTSYS, is something not handling in remote_event_wait(). Once we bubble up the that return/err code and handle it - the issue is resolved correctly and kthreads are stopped as expected. Patch 1/2 handles the returning of the return value from wait_event_interruptible() Patch 2/2 handles stopping of kthreads.
The whole series is: Tested-by: Stefan Wahren <wahrenst@xxxxxxx>