Re: [PATCH] media: verisilicon: suspend the device before unregistering it on remove
From: Nicolas Dufresne
Date: Mon Nov 30 2026 - 13:32:19 EST
On Fri, 06 Nov 2026 12:04:56 +0300, Sergei Khomenkov wrote:
> The clocks are enabled and disabled by the runtime PM callbacks.
> hantro_remove() calls v4l2_device_unregister() and clk_bulk_unprepare()
> first and only then pm_runtime_dont_use_autosuspend(), which suspends
> an active device right away. By then v4l2_device_unregister() has
> cleared the driver data (it points to the v4l2_device, the first member
> of struct hantro_dev), so hantro_runtime_suspend() dereferences NULL.
>
> [...]
Applied, thanks!
[1/1] media: verisilicon: suspend the device before unregistering it on remove
commit: eb5d5b9fb4ff6a235896c000f4758d764306ebfc
Best regards,
--
Nicolas Dufresne <nicolas.dufresne@xxxxxxxxxxxxx>