> From: Seonghyeon Lim <[email protected]>
> 
> virtio_can_probe() and virtio_can_restore() fill the RX virtqueue and
> kick it before the device is set DRIVER_OK. The virtio specification
> does not allow the driver to notify the device before DRIVER_OK.
> 
> In restore, if the interface was up, virtio_can_open() then sends a
> START control message and waits for the reply. DRIVER_OK is only set
> by the virtio core after restore returns, so the device may never
> handle the request and the wait never completes, which hangs system
> resume:
> 
>   task:kworker/u4:5 state:D
>   Workqueue: async async_run_entry_fn
>   Call Trace:
> [ ... ]
> virtio_can_napi_enable().
> 
> Fixes: 083082a4e6d8 ("can: virtio: Add virtio CAN driver")
> Cc: [email protected]
> Signed-off-by: Seonghyeon Lim <[email protected]>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=2


Reply via email to