[PATCH] media: verisilicon: suspend the device before unregistering it on remove
Nicolas Dufresne
nicolas.dufresne at collabora.com
Mon Nov 30 10:29:49 PST 2026
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 at collabora.com>
More information about the Linux-rockchip
mailing list