media: remove redundant pm_runtime_dont_use_autosuspend() calls
Subsystems (5)
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 anypm_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]>
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 anypm_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
@@ -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
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: callpm_runtime_dont_use_autosuspend()onreinit()"), driver core is now responsible for undoing anypm_runtime_use_autosuspend()calls on driver exit.Remove the redundant function calls.
Signed-off-by Joshua Crofts <[email protected]>
Quoted 28 lines
--- drivers/media/i2c/imx355.c | 2 -- 1 file changed, 2 deletions(-)drivers/media/i2c/imx355.c +0
-3@@ -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
PATCH 2/4 media: i2c: tc358746: remove redundant pm_runtime_dont_use_autosuspend() calls
In reply to Joshua CroftsSince commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"), driver core is now responsible for undoing anypm_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
@@ -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
PATCH 3/4 media: i2c: vd55g1: remove redundant pm_runtime_dont_use_autosuspend() calls
In reply to Joshua CroftsSince commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"), driver core is now responsible for undoing anypm_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
@@ -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
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: callpm_runtime_dont_use_autosuspend()onreinit()"), driver core is now responsible for undoing anypm_runtime_use_autosuspend()calls on driver exit.Remove the redundant function calls.
Signed-off-by Joshua Crofts <[email protected]>
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@@ -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
PATCH 4/4 media: i2c: vd56g3: remove redundant pm_runtime_dont_use_autosuspend() calls
In reply to Joshua CroftsSince commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"), driver core is now responsible for undoing anypm_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
@@ -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
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: callpm_runtime_dont_use_autosuspend()onreinit()"), driver core is now responsible for undoing anypm_runtime_use_autosuspend()calls on driver exit.Remove the redundant function calls.
Signed-off-by Joshua Crofts <[email protected]>
Quoted 25 lines
--- drivers/media/i2c/vd56g3.c | 2 -- 1 file changed, 2 deletions(-)drivers/media/i2c/vd56g3.c +0
-2@@ -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