Skip to contentSkip to conversation

media: remove redundant pm_runtime_dont_use_autosuspend() calls

PATCH In review Joshua Crofts 3 participants 8 messages Nov 10

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

cover media: remove redundant pm_runtime_dont_use_autosuspend() calls

Since commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"), driver core is now responsible for undoing any
pm_runtime_use_autosuspend() calls on driver exit.

Remove the redundant function calls.

NOTE: Some drivers in drivers/media/ still keep their calls because they either rely on pm_runtime_dont_use_autosuspend() before pm_runtime_disable() to flush pending autosuspend delays and trigger synchronous runtime suspension, or operate on a parent device rather than the platform device itself.

---
Joshua Crofts (4):
media: i2c: imx355: remove redundant pm_runtime_dont_use_autosuspend() calls
media: i2c: tc358746: remove redundant pm_runtime_dont_use_autosuspend() calls
media: i2c: vd55g1: remove redundant pm_runtime_dont_use_autosuspend() calls
media: i2c: vd56g3: remove redundant pm_runtime_dont_use_autosuspend() calls

 drivers/media/i2c/imx355.c   | 2 --
 drivers/media/i2c/tc358746.c | 2 --
 drivers/media/i2c/vd55g1.c   | 2 --
 drivers/media/i2c/vd56g3.c   | 2 --
 4 files changed, 8 deletions(-)

---
base-commit: b3dfbde62cf1981c4638939c159dfd087b7a72e9
change-id: 20261110-media-remove-dont-use-autosuspend-a8290b020d6f

Best regards,

Signature · 1 line
Joshua Crofts <[email protected]>
#1 lore raw

PATCH 1/4 media: i2c: imx355: remove redundant pm_runtime_dont_use_autosuspend() calls

Since commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"), driver core is now responsible for undoing any
pm_runtime_use_autosuspend() calls on driver exit.

Remove the redundant function calls.

---
 drivers/media/i2c/imx355.c | 2 --
 1 file changed, 2 deletions(-)
drivers/media/i2c/imx355.c +0 -2
index c0dafabf5dc9ad6237c9c9380d6122edfedc96f3..89e42312265822428cbf0b909627c66415b3282f 100644
@@ -1298,7 +1298,6 @@ static int imx355_probe(struct i2c_client *client)
 error_subdev_cleanup_runtime_pm:
 	pm_runtime_disable(imx355->dev);
 	pm_runtime_set_suspended(imx355->dev);
-	pm_runtime_dont_use_autosuspend(imx355->dev);
 	v4l2_subdev_cleanup(&imx355->sd);
 error_media_entity_free:
 	media_entity_cleanup(&imx355->sd.entity);
@@ -1329,7 +1328,6 @@ static void imx355_remove(struct i2c_client *client)
 		pm_runtime_set_suspended(imx355->dev);
 	}
 
-	pm_runtime_dont_use_autosuspend(imx355->dev);
 }
 
 static const struct acpi_device_id imx355_acpi_ids[] __maybe_unused = {
Signature · 1 line
2.47.3
maintainer Acked-by on v1 1/4
#2 lore raw

Re: [PATCH 1/4] media: i2c: imx355: remove redundant pm_runtime_dont_use_autosuspend() calls

Quoted 8 lines · Joshua Crofts

Since commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"), driver core is now responsible for undoing any
pm_runtime_use_autosuspend() calls on driver exit.

Remove the redundant function calls.

Quoted 28 lines
---
 drivers/media/i2c/imx355.c | 2 --
 1 file changed, 2 deletions(-)
drivers/media/i2c/imx355.c +0 -3
index c0dafabf5dc9ad6237c9c9380d6122edfedc96f3..89e42312265822428cbf0b909627c66415b3282f 100644
@@ -1298,7 +1298,6 @@ static int imx355_probe(struct i2c_client *client)
 error_subdev_cleanup_runtime_pm:
        pm_runtime_disable(imx355->dev);
        pm_runtime_set_suspended(imx355->dev);
-       pm_runtime_dont_use_autosuspend(imx355->dev);
        v4l2_subdev_cleanup(&imx355->sd);
 error_media_entity_free:
        media_entity_cleanup(&imx355->sd.entity);
@@ -1329,7 +1328,6 @@ static void imx355_remove(struct i2c_client *client)
                pm_runtime_set_suspended(imx355->dev);
        }
 
-       pm_runtime_dont_use_autosuspend(imx355->dev);
 }
 
 static const struct acpi_device_id imx355_acpi_ids[] __maybe_unused = {
 
--

2.47.3

#3 lore raw

PATCH 2/4 media: i2c: tc358746: remove redundant pm_runtime_dont_use_autosuspend() calls

In reply to Joshua Crofts

Since commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"), driver core is now responsible for undoing any
pm_runtime_use_autosuspend() calls on driver exit.

Remove the redundant function calls.

---
 drivers/media/i2c/tc358746.c | 2 --
 1 file changed, 2 deletions(-)
drivers/media/i2c/tc358746.c +0 -2
index 91d26a6340230186239b7586e73345fb755c5164..d123a530bb879d31111e971c702bb6f96794a8e2 100644
@@ -1596,7 +1596,6 @@ static int tc358746_probe(struct i2c_client *client)
 err_pm:
 	pm_runtime_disable(dev);
 	pm_runtime_set_suspended(dev);
-	pm_runtime_dont_use_autosuspend(dev);
 	v4l2_ctrl_handler_free(&tc358746->ctrl_hdl);
 err_fwnode:
 	v4l2_fwnode_endpoint_free(&tc358746->csi_vep);
@@ -1622,7 +1621,6 @@ static void tc358746_remove(struct i2c_client *client)
 
 	pm_runtime_disable(sd->dev);
 	pm_runtime_set_suspended(sd->dev);
-	pm_runtime_dont_use_autosuspend(sd->dev);
 }
 
 /*
Signature · 1 line
2.47.3
#4 lore raw

PATCH 3/4 media: i2c: vd55g1: remove redundant pm_runtime_dont_use_autosuspend() calls

In reply to Joshua Crofts

Since commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"), driver core is now responsible for undoing any
pm_runtime_use_autosuspend() calls on driver exit.

Remove the redundant function calls.

---
 drivers/media/i2c/vd55g1.c | 2 --
 1 file changed, 2 deletions(-)
drivers/media/i2c/vd55g1.c +0 -2
index 3a3ce32b0610eb23d42b622f2173a505df120176..8ea68dc9b1d99d11a7678138a5b6f7147b595f0a 100644
@@ -2053,7 +2053,6 @@ static int vd55g1_probe(struct i2c_client *client)
 err_power_off:
 	pm_runtime_disable(dev);
 	pm_runtime_put_noidle(dev);
-	pm_runtime_dont_use_autosuspend(dev);
 	vd55g1_power_off(dev);
 
 	return ret;
@@ -2070,7 +2069,6 @@ static void vd55g1_remove(struct i2c_client *client)
 	if (!pm_runtime_status_suspended(&client->dev))
 		vd55g1_power_off(&client->dev);
 	pm_runtime_set_suspended(&client->dev);
-	pm_runtime_dont_use_autosuspend(&client->dev);
 }
 
 static const struct of_device_id vd55g1_dt_ids[] = {
Signature · 1 line
2.47.3
maintainer Reviewed-by on v1 3/4
#5 lore raw

Re: [PATCH 3/4] media: i2c: vd55g1: remove redundant pm_runtime_dont_use_autosuspend() calls

Hi Joshua,

Le 10/11/2026 à 15:03, Joshua Crofts a écrit :

Quoted 7 lines

Since commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"), driver core is now responsible for undoing any
pm_runtime_use_autosuspend() calls on driver exit.

Remove the redundant function calls.

That's an easy one. Thank you.

Quoted 25 lines
---
 drivers/media/i2c/vd55g1.c | 2 --
 1 file changed, 2 deletions(-)
drivers/media/i2c/vd55g1.c +0 -2
index 3a3ce32b0610eb23d42b622f2173a505df120176..8ea68dc9b1d99d11a7678138a5b6f7147b595f0a 100644
@@ -2053,7 +2053,6 @@ static int vd55g1_probe(struct i2c_client *client)
 err_power_off:
 	pm_runtime_disable(dev);
 	pm_runtime_put_noidle(dev);
-	pm_runtime_dont_use_autosuspend(dev);
 	vd55g1_power_off(dev);
 
 	return ret;
@@ -2070,7 +2069,6 @@ static void vd55g1_remove(struct i2c_client *client)
 	if (!pm_runtime_status_suspended(&client->dev))
 		vd55g1_power_off(&client->dev);
 	pm_runtime_set_suspended(&client->dev);
-	pm_runtime_dont_use_autosuspend(&client->dev);
 }
 
 static const struct of_device_id vd55g1_dt_ids[] = {
Signature · 2 lines
Regards,
Benjamin
#6 lore raw

PATCH 4/4 media: i2c: vd56g3: remove redundant pm_runtime_dont_use_autosuspend() calls

In reply to Joshua Crofts

Since commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"), driver core is now responsible for undoing any
pm_runtime_use_autosuspend() calls on driver exit.

Remove the redundant function calls.

---
 drivers/media/i2c/vd56g3.c | 2 --
 1 file changed, 2 deletions(-)
drivers/media/i2c/vd56g3.c +0 -2
index a42210d0ab8d54a9132a5077875138c2440152bb..e4ad01973a24201a20dd43c86ac6de9817889049 100644
@@ -1538,7 +1538,6 @@ static int vd56g3_probe(struct i2c_client *client)
 err_power_off:
 	pm_runtime_disable(dev);
 	pm_runtime_put_noidle(dev);
-	pm_runtime_dont_use_autosuspend(dev);
 	vd56g3_power_off(dev);
 
 	return ret;
@@ -1555,7 +1554,6 @@ static void vd56g3_remove(struct i2c_client *client)
 	if (!pm_runtime_status_suspended(sensor->dev))
 		vd56g3_power_off(sensor->dev);
 	pm_runtime_set_suspended(sensor->dev);
-	pm_runtime_dont_use_autosuspend(sensor->dev);
 }
 
 static const struct of_device_id vd56g3_dt_ids[] = {
Signature · 1 line
2.47.3
maintainer Reviewed-by on v1 4/4
#7 lore raw

Re: [PATCH 4/4] media: i2c: vd56g3: remove redundant pm_runtime_dont_use_autosuspend() calls

Le 10/11/2026 à 15:03, Joshua Crofts a écrit :

Quoted 7 lines

Since commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"), driver core is now responsible for undoing any
pm_runtime_use_autosuspend() calls on driver exit.

Remove the redundant function calls.

Quoted 25 lines
---
 drivers/media/i2c/vd56g3.c | 2 --
 1 file changed, 2 deletions(-)
drivers/media/i2c/vd56g3.c +0 -2
index a42210d0ab8d54a9132a5077875138c2440152bb..e4ad01973a24201a20dd43c86ac6de9817889049 100644
@@ -1538,7 +1538,6 @@ static int vd56g3_probe(struct i2c_client *client)
 err_power_off:
 	pm_runtime_disable(dev);
 	pm_runtime_put_noidle(dev);
-	pm_runtime_dont_use_autosuspend(dev);
 	vd56g3_power_off(dev);
 
 	return ret;
@@ -1555,7 +1554,6 @@ static void vd56g3_remove(struct i2c_client *client)
 	if (!pm_runtime_status_suspended(sensor->dev))
 		vd56g3_power_off(sensor->dev);
 	pm_runtime_set_suspended(sensor->dev);
-	pm_runtime_dont_use_autosuspend(sensor->dev);
 }
 
 static const struct of_device_id vd56g3_dt_ids[] = {
Signature · 2 lines
Regards,
Benjamin