Re: [PATCH v2 1/2] media: imagination: e5010: Move e5010_init_device to Runtime Resume Hook

From: Jai Luthra

Date: Thu Jul 23 2026 - 15:17:31 EST


Hi Brandon,

Quoting Brandon Brnich (2026-07-23 21:11:16)
> The PM framework skips the runtime resume hook during system resume if the
> device was never on in the first place. This results in a crash when a call
> to e5010_init_device in the system resume hook attempts a write to a
> powered down device.
>
> Move e5010_init_device to the resume hook to ensure register write only
> occurs when device is properly powered on.
>
> Fixes: a1e294045885 ("media: imagination: Add E5010 JPEG Encoder driver")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Brandon Brnich <b-brnich@xxxxxx>

Reviewed-by: Jai Luthra <jai.luthra@xxxxxxxxxxxxxxxx>

Thanks,
Jai