Commit ccc888d1 authored by Sakari Ailus's avatar Sakari Ailus Committed by Hans Verkuil
Browse files

media: i2c: imx214: Rectify probe error handling related to runtime PM



There were multiple issues in the driver's probe function related to
error handling:

- Device's PM runtime status wasn't reverted to suspended on some errors
  in probe.

- Runtime PM was left enabled for the device on some probe errors.

- Device was left powered on if a probe failure happened or when it
  was removed when it was powered on.

- An extra pm_runtime_set_suspended() was issued in driver's remove
  function when the device was suspended.

Fix these bugs.

Fixes: 43619059 ("media: imx214: Add imx214 camera sensor driver")
Cc: stable@vger.kernel.org # for >= v6.12
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: default avatarAndré Apitzsch <git@apitzsch.eu>
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
parent abd88757
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment