]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: i2c: imx319: Rectify runtime PM handling probe and remove
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 10 Jan 2025 12:55:59 +0000 (14:55 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Sat, 15 Feb 2025 14:22:51 +0000 (15:22 +0100)
commit5f5ffd3bc62b2e6c478061918b10473d8b90ac2d
tree69a039e558be8e83d214ddf841e208104c37fb9b
parent42eceae9793566d0df53d509be3e416465c347f5
media: i2c: imx319: Rectify runtime PM handling probe and remove

Idle the device only after the async sub-device has been successfully
registered. In error handling, set the device's runtime PM status to
suspended only if it has been set to active previously in probe.

Also set the device's runtime PM status to suspended in remove only if it
wasn't so already.

Fixes: 8a89dc62f28c ("media: add imx319 camera sensor driver")
Cc: stable@vger.kernel.org # for >= v6.12
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/imx319.c