Re: [PATCH 2/2] media: uvcvideo: skip resume when writing hibernation image

From: Oliver Neukum

Date: Tue Apr 28 2026 - 04:52:23 EST


Hi,

On 28.04.26 10:05, Haowen Tu wrote:

Skipping the THAW resume is safe: stream->frozen remains 1 (set during
the earlier FREEZE suspend), the device is powered off immediately after
swsusp_write() with no intervening suspend, and the subsequent
PMSG_RESTORE resume on the restored kernel calls uvc_video_resume()
with pm_hibernation_storing_image() returning false, performing the full
reinitialization as normal.


What happens if writing out the image fails?

Regards
Oliver