[PATCH v2 2/2] media: i2c: imx415: Release runtime PM reference on VBLANK error

From: Narasimharao Vadlamudi

Date: Wed Aug 05 2026 - 10:11:38 EST


The VBLANK path returned immediately when programming VMAX failed after
pm_runtime_get_if_in_use() had taken a runtime PM reference. Break out of
the switch instead so the common pm_runtime_put() path is used.

Fixes: 3bcae55ab96a ("media: i2c: imx415: Add read/write control of VBLANK")
Cc: stable@xxxxxxxxxxxxxxx
Reviewed-by: Michael Riesch <michael.riesch@xxxxxxxxxxxxx>
Signed-off-by: Narasimharao Vadlamudi <ahmisaranrao@xxxxxxxxx>
---
drivers/media/i2c/imx415.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/i2c/imx415.c b/drivers/media/i2c/imx415.c
index f5cd79da512c..c3b22b238ea0 100644
--- a/drivers/media/i2c/imx415.c
+++ b/drivers/media/i2c/imx415.c
@@ -720,7 +720,7 @@ static int imx415_s_ctrl(struct v4l2_ctrl *ctrl)
ret = cci_write(sensor->regmap, IMX415_VMAX,
format->height + ctrl->val, NULL);
if (ret)
- return ret;
+ break;
/*
* Exposure is set based on VMAX which has just changed, so
* program exposure register as well
--
2.43.0