Skip to contentSkip to conversation

iio: remove redundant pm_runtime_dont_use_autosuspend() calls

PATCH Applied Joshua Crofts 3 participants 13 messages Nov 5 – Nov 7

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

cover iio: 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.

Joshua Crofts (10):
iio: accel: bmc150: remove redundant pm_runtime_dont_use_autosuspend()
call
iio: accel: kxcjk-1013: remove redundant
pm_runtime_dont_use_autosuspend() calls
iio: accel: mma9551: remove redundant
pm_runtime_dont_use_autosuspend() calls
iio: accel: mma9553: remove redundant
pm_runtime_dont_use_autosuspend() calls
iio: adc: at91-sama5d2_adc: remove reduntant
pm_runtime_dont_use_autosuspend() calls
iio: adc: imx93_adc: remove redundant
pm_runtime_dont_use_autosuspend() call
iio: gyro: bmg160: remove redundant pm_runtime_dont_use_autosuspend()
call
iio: imu: kmx61: remove redundant pm_runtime_dont_use_autosuspend()
call
iio: light: vncl4035: remove redundant
pm_runtime_dont_use_autosuspend() call
iio: magnetometer: bmc150_magn: remove redundant
pm_runtime_dont_use_autosuspend() call

 drivers/iio/accel/bmc150-accel-core.c  | 1 -
 drivers/iio/accel/kxcjk-1013.c         | 2 --
 drivers/iio/accel/mma9551.c            | 2 --
 drivers/iio/accel/mma9553.c            | 2 --
 drivers/iio/adc/at91-sama5d2_adc.c     | 2 --
 drivers/iio/adc/imx93_adc.c            | 1 -
 drivers/iio/gyro/bmg160_core.c         | 1 -
 drivers/iio/imu/kmx61.c                | 1 -
 drivers/iio/light/vcnl4035.c           | 1 -
 drivers/iio/magnetometer/bmc150_magn.c | 1 -
 10 files changed, 14 deletions(-)

base-commit: 1390ca4953a7400ca932cb49635f02c727f885a6

Signature · 1 line
2.47.3
#1 lore raw

PATCH 1/10 iio: accel: bmc150: remove redundant pm_runtime_dont_use_autosuspend() call

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 call.

---
 drivers/iio/accel/bmc150-accel-core.c | 1 -
 1 file changed, 1 deletion(-)
drivers/iio/accel/bmc150-accel-core.c +0 -1
index 46bb36d9366e..754607d1f38a 100644
@@ -1751,7 +1751,6 @@ int bmc150_accel_core_probe(struct device *dev, struct regmap *regmap, int irq,
 	return 0;
 
 err_pm_cleanup:
-	pm_runtime_dont_use_autosuspend(dev);
 	pm_runtime_disable(dev);
 err_trigger_unregister:
 	bmc150_accel_unregister_triggers(data, BMC150_ACCEL_TRIGGERS - 1);
Signature · 1 line
2.47.3
#2 lore raw

PATCH 2/10 iio: accel: kxcjk-1013: 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/iio/accel/kxcjk-1013.c | 2 --
 1 file changed, 2 deletions(-)
drivers/iio/accel/kxcjk-1013.c +0 -2
index 336914eb3b3e..18b1ba365f78 100644
@@ -1525,7 +1525,6 @@ static int kxcjk1013_probe(struct i2c_client *client)
 	return 0;
 
 err_pm_cleanup:
-	pm_runtime_dont_use_autosuspend(&client->dev);
 	pm_runtime_disable(&client->dev);
 err_buffer_cleanup:
 	iio_triggered_buffer_cleanup(indio_dev);
@@ -1547,7 +1546,6 @@ static void kxcjk1013_remove(struct i2c_client *client)
 
 	iio_device_unregister(indio_dev);
 
-	pm_runtime_dont_use_autosuspend(&client->dev);
 	pm_runtime_disable(&client->dev);
 	pm_runtime_set_suspended(&client->dev);
 
Signature · 1 line
2.47.3
#3 lore raw

PATCH 3/10 iio: accel: mma9551: 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/iio/accel/mma9551.c | 2 --
 1 file changed, 2 deletions(-)
drivers/iio/accel/mma9551.c +0 -2
index b260e294606a..f1a39a9acd06 100644
@@ -485,7 +485,6 @@ static int mma9551_probe(struct i2c_client *client)
 	return 0;
 
 err_pm_cleanup:
-	pm_runtime_dont_use_autosuspend(&client->dev);
 	pm_runtime_disable(&client->dev);
 out_poweroff:
 	mma9551_set_device_state(client, false);
@@ -500,7 +499,6 @@ static void mma9551_remove(struct i2c_client *client)
 
 	iio_device_unregister(indio_dev);
 
-	pm_runtime_dont_use_autosuspend(&client->dev);
 	pm_runtime_disable(&client->dev);
 	pm_runtime_set_suspended(&client->dev);
 
Signature · 1 line
2.47.3
#4 lore raw

PATCH 4/10 iio: accel: mma9553: 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/iio/accel/mma9553.c | 2 --
 1 file changed, 2 deletions(-)
drivers/iio/accel/mma9553.c +0 -2
index f623a0ac6f31..dacea12d702f 100644
@@ -1122,7 +1122,6 @@ static int mma9553_probe(struct i2c_client *client)
 	return 0;
 
 err_pm_cleanup:
-	pm_runtime_dont_use_autosuspend(&client->dev);
 	pm_runtime_disable(&client->dev);
 out_poweroff:
 	mma9551_set_device_state(client, false);
@@ -1136,7 +1135,6 @@ static void mma9553_remove(struct i2c_client *client)
 
 	iio_device_unregister(indio_dev);
 
-	pm_runtime_dont_use_autosuspend(&client->dev);
 	pm_runtime_disable(&client->dev);
 	pm_runtime_set_suspended(&client->dev);
 
Signature · 1 line
2.47.3
#5 lore raw

PATCH 5/10 iio: adc: at91-sama5d2_adc: remove reduntant 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/iio/adc/at91-sama5d2_adc.c | 2 --
 1 file changed, 2 deletions(-)
drivers/iio/adc/at91-sama5d2_adc.c +0 -2
index 78081cbfde5e..2f7d2cee81f9 100644
@@ -2469,7 +2469,6 @@ static int at91_adc_probe(struct platform_device *pdev)
 	pm_runtime_put_noidle(st->dev);
 	pm_runtime_disable(st->dev);
 	pm_runtime_set_suspended(st->dev);
-	pm_runtime_dont_use_autosuspend(st->dev);
 	clk_disable_unprepare(st->per_clk);
 vref_disable:
 	regulator_disable(st->vref);
@@ -2490,7 +2489,6 @@ static void at91_adc_remove(struct platform_device *pdev)
 
 	pm_runtime_disable(st->dev);
 	pm_runtime_set_suspended(st->dev);
-	pm_runtime_dont_use_autosuspend(st->dev);
 	clk_disable_unprepare(st->per_clk);
 
 	regulator_disable(st->vref);
Signature · 1 line
2.47.3
#6 lore raw

PATCH 6/10 iio: adc: imx93_adc: remove redundant pm_runtime_dont_use_autosuspend() call

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 call.

---
 drivers/iio/adc/imx93_adc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/iio/adc/imx93_adc.c +0 -1
index 797adaf371ba..1ced0c59609c 100644
@@ -415,7 +415,6 @@ static void imx93_adc_remove(struct platform_device *pdev)
 	pm_runtime_get_sync(dev);
 
 	pm_runtime_disable(dev);
-	pm_runtime_dont_use_autosuspend(dev);
 	pm_runtime_put_noidle(dev);
 
 	iio_device_unregister(indio_dev);
Signature · 1 line
2.47.3
maintainer Reviewed-by on v1 6/10
#7 lore raw

RE: [PATCH 06/10] iio: adc: imx93_adc: remove redundant pm_runtime_dont_use_autosuspend() call

Quoted 16 lines

-----Original Message-----
From: Joshua Crofts <[email protected]>
Sent: Thursday, November 5, 2026 8:17 PM
To: Jonathan Cameron <[email protected]>; David Lechner <[email protected]>; Nuno Sá <[email protected]>; Andy Shevchenko <[email protected]>; Eugen Hristev <[email protected]>; Nicolas Ferre <[email protected]>; Alexandre Belloni <[email protected]>; Claudiu Beznea <[email protected]>; Bough Chen <[email protected]>; Frank Li <[email protected]>; Sascha Hauer <[email protected]>; Pengutronix Kernel Team <[email protected]>; Fabio Estevam <[email protected]>
Cc: [email protected]; [email protected]; linux-arm- [email protected]; [email protected]
Subject: [PATCH 06/10] iio: adc: imx93_adc: remove redundant pm_runtime_dont_use_autosuspend() call

Quoted 6 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 call.

Thanks
Haibo Chen

Quoted 21 lines
---
 drivers/iio/adc/imx93_adc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/iio/adc/imx93_adc.c index renamed from drivers/iio/adc/imx93_adc.c +0 -0

797adaf371ba..1ced0c59609c 100644

drivers/iio/adc/imx93_adc.c +0 -1
@@ -415,7 +415,6 @@ static void imx93_adc_remove(struct platform_device
 *pdev)
 	pm_runtime_get_sync(dev);
 
 	pm_runtime_disable(dev);
-	pm_runtime_dont_use_autosuspend(dev);
 	pm_runtime_put_noidle(dev);
 

iio_device_unregister(indio_dev);
--
2.47.3

#8 lore raw

PATCH 7/10 iio: gyro: bmg160: remove redundant pm_runtime_dont_use_autosuspend() call

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 call.

---
 drivers/iio/gyro/bmg160_core.c | 1 -
 1 file changed, 1 deletion(-)
drivers/iio/gyro/bmg160_core.c +0 -1
index b007f46d3fd6..f1e1d21e590f 100644
@@ -1169,7 +1169,6 @@ int bmg160_core_probe(struct device *dev, struct regmap *regmap, int irq,
 	return 0;
 
 err_pm_cleanup:
-	pm_runtime_dont_use_autosuspend(dev);
 	pm_runtime_disable(dev);
 err_buffer_cleanup:
 	iio_triggered_buffer_cleanup(indio_dev);
Signature · 1 line
2.47.3
#9 lore raw

PATCH 8/10 iio: imu: kmx61: remove redundant pm_runtime_dont_use_autosuspend() call

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 call.

---
 drivers/iio/imu/kmx61.c | 1 -
 1 file changed, 1 deletion(-)
drivers/iio/imu/kmx61.c +0 -1
index 1ca998f44eb2..bc8e88ffe430 100644
@@ -1388,7 +1388,6 @@ static int kmx61_probe(struct i2c_client *client)
 err_iio_unregister_acc:
 	iio_device_unregister(data->acc_indio_dev);
 err_pm_cleanup:
-	pm_runtime_dont_use_autosuspend(&client->dev);
 	pm_runtime_disable(&client->dev);
 err_buffer_cleanup_mag:
 	if (client->irq > 0)
Signature · 1 line
2.47.3
#10 lore raw

PATCH 9/10 iio: light: vncl4035: remove redundant pm_runtime_dont_use_autosuspend() call

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 call.

---
 drivers/iio/light/vcnl4035.c | 1 -
 1 file changed, 1 deletion(-)
drivers/iio/light/vcnl4035.c +0 -1
index 23bd0d42363d..c34a2ab073a1 100644
@@ -607,7 +607,6 @@ static void vcnl4035_remove(struct i2c_client *client)
 	struct iio_dev *indio_dev = i2c_get_clientdata(client);
 	int ret;
 
-	pm_runtime_dont_use_autosuspend(&client->dev);
 	pm_runtime_disable(&client->dev);
 	iio_device_unregister(indio_dev);
 	pm_runtime_set_suspended(&client->dev);
Signature · 1 line
2.47.3
#11 lore raw

PATCH 10/10 iio: magnetometer: bmc150_magn: remove redundant pm_runtime_dont_use_autosuspend() call

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 call.

---
 drivers/iio/magnetometer/bmc150_magn.c | 1 -
 1 file changed, 1 deletion(-)
drivers/iio/magnetometer/bmc150_magn.c +0 -1
index 32dff9cdd0f7..16b5c2451728 100644
@@ -934,7 +934,6 @@ int bmc150_magn_probe(struct device *dev, struct regmap *regmap,
 	return 0;
 
 err_pm_cleanup:
-	pm_runtime_dont_use_autosuspend(dev);
 	pm_runtime_disable(dev);
 err_buffer_cleanup:
 	iio_triggered_buffer_cleanup(indio_dev);
Signature · 1 line
2.47.3
maintainer Applied
#12 lore raw
In reply to Joshua Crofts
Quoted 3 lines · On Thu, 5 Nov 2026 12:16:25 +0000 Joshua Crofts <[email protected]> wrote:

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.

This sort of series I particularly like.

Applied!

Jonathan