mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 00/11] spi: remove redundant pm_runtime_dont_use_autosuspend() calls
@ 2026-11-08 12:16 Joshua Crofts
  2026-11-08 12:16 ` [PATCH 01/11] spi: axiado: " Joshua Crofts
                   ` (11 more replies)
  0 siblings, 12 replies; 14+ messages in thread
From: Joshua Crofts @ 2026-11-08 12:16 UTC (permalink / raw)
  To: Vladimir Moravcevic, Tzu-Hao Wei, Swark Yang, Prasad Bolisetty,
	Mark Brown, Karthikeyan Mitran, Alain Volmat, Maxime Coquelin,
	Alexandre Torgue, Michal Simek, Matthias Brugger,
	AngeloGioacchino Del Regno, Heiko Stuebner, Jyan Chou,
	Yu-Chun Lin, Laxman Dewangan, Thierry Reding, Jonathan Hunter,
	Sowjanya Komatineni
  Cc: linux-spi, linux-arm-kernel, linux-kernel, linux-stm32,
	linux-mediatek, linux-rockchip, linux-tegra, 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.

NOTE: Some drivers in drivers/spi/ (fsl-lpspi, imx, nxp-fspi, omap2-mcspi,
rpc-if) 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.

Signed-off-by: Joshua Crofts <crofts@kernel.org>
---
Joshua Crofts (11):
      spi: axiado: remove redundant pm_runtime_dont_use_autosuspend() calls
      spi: cadence-quadspi: remove redundant pm_runtime_dont_use_autosuspend() calls
      spi: cadence: remove redundant pm_runtime_dont_use_autosuspend() calls
      spi: stm32: remove redundant pm_runtime_dont_use_autosuspend() calls
      spi: stm32-qspi: remove redundant pm_runtime_dont_use_autosuspend() calls
      spi: zynqmp-gqspi: remove redundant pm_runtime_dont_use_autosuspend() calls
      spi: mtk-nor: remove redundant pm_runtime_dont_use_autosuspend() calls
      spi: orion: remove redundant pm_runtime_dont_use_autosuspend() calls
      spi: rockchip-sfc: remove redundant pm_runtime_dont_use_autosuspend() calls
      spi: rtk-nor: remove redundant pm_runtime_dont_use_autosuspend() calls
      spi: tegra210-quad: remove redundant pm_runtime_dont_use_autosuspend() calls

 drivers/spi/spi-axiado.c          | 2 --
 drivers/spi/spi-cadence-quadspi.c | 2 --
 drivers/spi/spi-cadence.c         | 2 --
 drivers/spi/spi-mtk-nor.c         | 2 --
 drivers/spi/spi-orion.c           | 2 --
 drivers/spi/spi-rockchip-sfc.c    | 2 --
 drivers/spi/spi-rtk-nor.c         | 2 --
 drivers/spi/spi-stm32-qspi.c      | 2 --
 drivers/spi/spi-stm32.c           | 2 --
 drivers/spi/spi-tegra210-quad.c   | 2 --
 drivers/spi/spi-zynqmp-gqspi.c    | 2 --
 11 files changed, 22 deletions(-)
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261108-spi-dont-use-autosuspend-9997b4f65edd

Best regards,
-- 
Joshua Crofts


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 01/11] spi: axiado: remove redundant pm_runtime_dont_use_autosuspend() calls
  2026-11-08 12:16 [PATCH 00/11] spi: remove redundant pm_runtime_dont_use_autosuspend() calls Joshua Crofts
@ 2026-11-08 12:16 ` Joshua Crofts
  2026-11-08 12:16 ` [PATCH 02/11] spi: cadence-quadspi: " Joshua Crofts
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 14+ messages in thread
From: Joshua Crofts @ 2026-11-08 12:16 UTC (permalink / raw)
  To: Vladimir Moravcevic, Tzu-Hao Wei, Swark Yang, Prasad Bolisetty,
	Mark Brown, Karthikeyan Mitran, Alain Volmat, Maxime Coquelin,
	Alexandre Torgue, Michal Simek, Matthias Brugger,
	AngeloGioacchino Del Regno, Heiko Stuebner, Jyan Chou,
	Yu-Chun Lin, Laxman Dewangan, Thierry Reding, Jonathan Hunter,
	Sowjanya Komatineni
  Cc: linux-spi, linux-arm-kernel, linux-kernel, linux-stm32,
	linux-mediatek, linux-rockchip, linux-tegra, 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.

Signed-off-by: Joshua Crofts <crofts@kernel.org>
---
 drivers/spi/spi-axiado.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-axiado.c b/drivers/spi/spi-axiado.c
index 4a781b53f372..983fa657f00a 100644
--- a/drivers/spi/spi-axiado.c
+++ b/drivers/spi/spi-axiado.c
@@ -858,7 +858,6 @@ static int ax_spi_probe(struct platform_device *pdev)
 	pm_runtime_disable(&pdev->dev);
 	pm_runtime_put_noidle(&pdev->dev);
 	pm_runtime_set_suspended(&pdev->dev);
-	pm_runtime_dont_use_autosuspend(&pdev->dev);
 
 	clk_disable_unprepare(xspi->ref_clk);
 err_disable_apb:
@@ -887,7 +886,6 @@ static void ax_spi_remove(struct platform_device *pdev)
 	pm_runtime_disable(&pdev->dev);
 	pm_runtime_put_noidle(&pdev->dev);
 	pm_runtime_set_suspended(&pdev->dev);
-	pm_runtime_dont_use_autosuspend(&pdev->dev);
 
 	clk_disable_unprepare(xspi->ref_clk);
 	clk_disable_unprepare(xspi->pclk);

-- 
2.56.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 02/11] spi: cadence-quadspi: remove redundant pm_runtime_dont_use_autosuspend() calls
  2026-11-08 12:16 [PATCH 00/11] spi: remove redundant pm_runtime_dont_use_autosuspend() calls Joshua Crofts
  2026-11-08 12:16 ` [PATCH 01/11] spi: axiado: " Joshua Crofts
@ 2026-11-08 12:16 ` Joshua Crofts
  2026-11-08 12:16 ` [PATCH 03/11] spi: cadence: " Joshua Crofts
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 14+ messages in thread
From: Joshua Crofts @ 2026-11-08 12:16 UTC (permalink / raw)
  To: Vladimir Moravcevic, Tzu-Hao Wei, Swark Yang, Prasad Bolisetty,
	Mark Brown, Karthikeyan Mitran, Alain Volmat, Maxime Coquelin,
	Alexandre Torgue, Michal Simek, Matthias Brugger,
	AngeloGioacchino Del Regno, Heiko Stuebner, Jyan Chou,
	Yu-Chun Lin, Laxman Dewangan, Thierry Reding, Jonathan Hunter,
	Sowjanya Komatineni
  Cc: linux-spi, linux-arm-kernel, linux-kernel, linux-stm32,
	linux-mediatek, linux-rockchip, linux-tegra, 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.

Signed-off-by: Joshua Crofts <crofts@kernel.org>
---
 drivers/spi/spi-cadence-quadspi.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-cadence-quadspi.c b/drivers/spi/spi-cadence-quadspi.c
index 73ea51c41f95..a276745095e4 100644
--- a/drivers/spi/spi-cadence-quadspi.c
+++ b/drivers/spi/spi-cadence-quadspi.c
@@ -2001,7 +2001,6 @@ static int cqspi_probe(struct platform_device *pdev)
 	pm_runtime_disable(dev);
 	pm_runtime_set_suspended(dev);
 	pm_runtime_put_noidle(dev);
-	pm_runtime_dont_use_autosuspend(dev);
 
 	cqspi_controller_enable(cqspi, 0);
 disable_clks:
@@ -2037,7 +2036,6 @@ static void cqspi_remove(struct platform_device *pdev)
 	pm_runtime_disable(&pdev->dev);
 	pm_runtime_set_suspended(&pdev->dev);
 	pm_runtime_put_noidle(&pdev->dev);
-	pm_runtime_dont_use_autosuspend(&pdev->dev);
 }
 
 static int cqspi_runtime_suspend(struct device *dev)

-- 
2.56.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 03/11] spi: cadence: remove redundant pm_runtime_dont_use_autosuspend() calls
  2026-11-08 12:16 [PATCH 00/11] spi: remove redundant pm_runtime_dont_use_autosuspend() calls Joshua Crofts
  2026-11-08 12:16 ` [PATCH 01/11] spi: axiado: " Joshua Crofts
  2026-11-08 12:16 ` [PATCH 02/11] spi: cadence-quadspi: " Joshua Crofts
@ 2026-11-08 12:16 ` Joshua Crofts
  2026-11-08 12:16 ` [PATCH 04/11] spi: stm32: " Joshua Crofts
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 14+ messages in thread
From: Joshua Crofts @ 2026-11-08 12:16 UTC (permalink / raw)
  To: Vladimir Moravcevic, Tzu-Hao Wei, Swark Yang, Prasad Bolisetty,
	Mark Brown, Karthikeyan Mitran, Alain Volmat, Maxime Coquelin,
	Alexandre Torgue, Michal Simek, Matthias Brugger,
	AngeloGioacchino Del Regno, Heiko Stuebner, Jyan Chou,
	Yu-Chun Lin, Laxman Dewangan, Thierry Reding, Jonathan Hunter,
	Sowjanya Komatineni
  Cc: linux-spi, linux-arm-kernel, linux-kernel, linux-stm32,
	linux-mediatek, linux-rockchip, linux-tegra, 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.

Signed-off-by: Joshua Crofts <crofts@kernel.org>
---
 drivers/spi/spi-cadence.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-cadence.c b/drivers/spi/spi-cadence.c
index 50ef3a7871c2..ccab85a07d77 100644
--- a/drivers/spi/spi-cadence.c
+++ b/drivers/spi/spi-cadence.c
@@ -762,7 +762,6 @@ static int cdns_spi_probe(struct platform_device *pdev)
 		pm_runtime_disable(&pdev->dev);
 		pm_runtime_set_suspended(&pdev->dev);
 		pm_runtime_put_noidle(&pdev->dev);
-		pm_runtime_dont_use_autosuspend(&pdev->dev);
 	}
 
 	return ret;
@@ -794,7 +793,6 @@ static void cdns_spi_remove(struct platform_device *pdev)
 		pm_runtime_disable(&pdev->dev);
 		pm_runtime_set_suspended(&pdev->dev);
 		pm_runtime_put_noidle(&pdev->dev);
-		pm_runtime_dont_use_autosuspend(&pdev->dev);
 	}
 }
 

-- 
2.56.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 04/11] spi: stm32: remove redundant pm_runtime_dont_use_autosuspend() calls
  2026-11-08 12:16 [PATCH 00/11] spi: remove redundant pm_runtime_dont_use_autosuspend() calls Joshua Crofts
                   ` (2 preceding siblings ...)
  2026-11-08 12:16 ` [PATCH 03/11] spi: cadence: " Joshua Crofts
@ 2026-11-08 12:16 ` Joshua Crofts
  2026-11-17  9:04   ` Alain Volmat
  2026-11-08 12:16 ` [PATCH 05/11] spi: stm32-qspi: " Joshua Crofts
                   ` (7 subsequent siblings)
  11 siblings, 1 reply; 14+ messages in thread
From: Joshua Crofts @ 2026-11-08 12:16 UTC (permalink / raw)
  To: Vladimir Moravcevic, Tzu-Hao Wei, Swark Yang, Prasad Bolisetty,
	Mark Brown, Karthikeyan Mitran, Alain Volmat, Maxime Coquelin,
	Alexandre Torgue, Michal Simek, Matthias Brugger,
	AngeloGioacchino Del Regno, Heiko Stuebner, Jyan Chou,
	Yu-Chun Lin, Laxman Dewangan, Thierry Reding, Jonathan Hunter,
	Sowjanya Komatineni
  Cc: linux-spi, linux-arm-kernel, linux-kernel, linux-stm32,
	linux-mediatek, linux-rockchip, linux-tegra, 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.

Signed-off-by: Joshua Crofts <crofts@kernel.org>
---
 drivers/spi/spi-stm32.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c
index 4c3ae546afc0..95994278cdaa 100644
--- a/drivers/spi/spi-stm32.c
+++ b/drivers/spi/spi-stm32.c
@@ -2544,7 +2544,6 @@ static int stm32_spi_probe(struct platform_device *pdev)
 	pm_runtime_disable(&pdev->dev);
 	pm_runtime_put_noidle(&pdev->dev);
 	pm_runtime_set_suspended(&pdev->dev);
-	pm_runtime_dont_use_autosuspend(&pdev->dev);
 
 	if (spi->mdma_rx)
 		dma_release_channel(spi->mdma_rx);
@@ -2574,7 +2573,6 @@ static void stm32_spi_remove(struct platform_device *pdev)
 	pm_runtime_disable(&pdev->dev);
 	pm_runtime_put_noidle(&pdev->dev);
 	pm_runtime_set_suspended(&pdev->dev);
-	pm_runtime_dont_use_autosuspend(&pdev->dev);
 
 	if (ctrl->dma_tx)
 		dma_release_channel(ctrl->dma_tx);

-- 
2.56.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 05/11] spi: stm32-qspi: remove redundant pm_runtime_dont_use_autosuspend() calls
  2026-11-08 12:16 [PATCH 00/11] spi: remove redundant pm_runtime_dont_use_autosuspend() calls Joshua Crofts
                   ` (3 preceding siblings ...)
  2026-11-08 12:16 ` [PATCH 04/11] spi: stm32: " Joshua Crofts
@ 2026-11-08 12:16 ` Joshua Crofts
  2026-11-08 12:16 ` [PATCH 06/11] spi: zynqmp-gqspi: " Joshua Crofts
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 14+ messages in thread
From: Joshua Crofts @ 2026-11-08 12:16 UTC (permalink / raw)
  To: Vladimir Moravcevic, Tzu-Hao Wei, Swark Yang, Prasad Bolisetty,
	Mark Brown, Karthikeyan Mitran, Alain Volmat, Maxime Coquelin,
	Alexandre Torgue, Michal Simek, Matthias Brugger,
	AngeloGioacchino Del Regno, Heiko Stuebner, Jyan Chou,
	Yu-Chun Lin, Laxman Dewangan, Thierry Reding, Jonathan Hunter,
	Sowjanya Komatineni
  Cc: linux-spi, linux-arm-kernel, linux-kernel, linux-stm32,
	linux-mediatek, linux-rockchip, linux-tegra, 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.

Signed-off-by: Joshua Crofts <crofts@kernel.org>
---
 drivers/spi/spi-stm32-qspi.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-stm32-qspi.c b/drivers/spi/spi-stm32-qspi.c
index b77daba6db83..4ca21a327a26 100644
--- a/drivers/spi/spi-stm32-qspi.c
+++ b/drivers/spi/spi-stm32-qspi.c
@@ -882,7 +882,6 @@ static int stm32_qspi_probe(struct platform_device *pdev)
 	pm_runtime_put_noidle(qspi->dev);
 	pm_runtime_disable(qspi->dev);
 	pm_runtime_set_suspended(qspi->dev);
-	pm_runtime_dont_use_autosuspend(qspi->dev);
 err_dma_free:
 	stm32_qspi_dma_free(qspi);
 err_clk_disable:
@@ -904,7 +903,6 @@ static void stm32_qspi_remove(struct platform_device *pdev)
 	pm_runtime_put_noidle(qspi->dev);
 	pm_runtime_disable(qspi->dev);
 	pm_runtime_set_suspended(qspi->dev);
-	pm_runtime_dont_use_autosuspend(qspi->dev);
 	clk_disable_unprepare(qspi->clk);
 }
 

-- 
2.56.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 06/11] spi: zynqmp-gqspi: remove redundant pm_runtime_dont_use_autosuspend() calls
  2026-11-08 12:16 [PATCH 00/11] spi: remove redundant pm_runtime_dont_use_autosuspend() calls Joshua Crofts
                   ` (4 preceding siblings ...)
  2026-11-08 12:16 ` [PATCH 05/11] spi: stm32-qspi: " Joshua Crofts
@ 2026-11-08 12:16 ` Joshua Crofts
  2026-11-08 12:16 ` [PATCH 07/11] spi: mtk-nor: " Joshua Crofts
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 14+ messages in thread
From: Joshua Crofts @ 2026-11-08 12:16 UTC (permalink / raw)
  To: Vladimir Moravcevic, Tzu-Hao Wei, Swark Yang, Prasad Bolisetty,
	Mark Brown, Karthikeyan Mitran, Alain Volmat, Maxime Coquelin,
	Alexandre Torgue, Michal Simek, Matthias Brugger,
	AngeloGioacchino Del Regno, Heiko Stuebner, Jyan Chou,
	Yu-Chun Lin, Laxman Dewangan, Thierry Reding, Jonathan Hunter,
	Sowjanya Komatineni
  Cc: linux-spi, linux-arm-kernel, linux-kernel, linux-stm32,
	linux-mediatek, linux-rockchip, linux-tegra, 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.

Signed-off-by: Joshua Crofts <crofts@kernel.org>
---
 drivers/spi/spi-zynqmp-gqspi.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-zynqmp-gqspi.c b/drivers/spi/spi-zynqmp-gqspi.c
index 15e9d3ef8839..2511d71e1423 100644
--- a/drivers/spi/spi-zynqmp-gqspi.c
+++ b/drivers/spi/spi-zynqmp-gqspi.c
@@ -1335,7 +1335,6 @@ static int zynqmp_qspi_probe(struct platform_device *pdev)
 
 clk_dis_all:
 	pm_runtime_disable(&pdev->dev);
-	pm_runtime_dont_use_autosuspend(&pdev->dev);
 	pm_runtime_put_noidle(&pdev->dev);
 	pm_runtime_set_suspended(&pdev->dev);
 	clk_disable_unprepare(xqspi->refclk);
@@ -1366,7 +1365,6 @@ static void zynqmp_qspi_remove(struct platform_device *pdev)
 	zynqmp_gqspi_write(xqspi, GQSPI_EN_OFST, 0x0);
 
 	pm_runtime_disable(&pdev->dev);
-	pm_runtime_dont_use_autosuspend(&pdev->dev);
 	pm_runtime_put_noidle(&pdev->dev);
 	pm_runtime_set_suspended(&pdev->dev);
 	clk_disable_unprepare(xqspi->refclk);

-- 
2.56.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 07/11] spi: mtk-nor: remove redundant pm_runtime_dont_use_autosuspend() calls
  2026-11-08 12:16 [PATCH 00/11] spi: remove redundant pm_runtime_dont_use_autosuspend() calls Joshua Crofts
                   ` (5 preceding siblings ...)
  2026-11-08 12:16 ` [PATCH 06/11] spi: zynqmp-gqspi: " Joshua Crofts
@ 2026-11-08 12:16 ` Joshua Crofts
  2026-11-08 12:16 ` [PATCH 08/11] spi: orion: " Joshua Crofts
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 14+ messages in thread
From: Joshua Crofts @ 2026-11-08 12:16 UTC (permalink / raw)
  To: Vladimir Moravcevic, Tzu-Hao Wei, Swark Yang, Prasad Bolisetty,
	Mark Brown, Karthikeyan Mitran, Alain Volmat, Maxime Coquelin,
	Alexandre Torgue, Michal Simek, Matthias Brugger,
	AngeloGioacchino Del Regno, Heiko Stuebner, Jyan Chou,
	Yu-Chun Lin, Laxman Dewangan, Thierry Reding, Jonathan Hunter,
	Sowjanya Komatineni
  Cc: linux-spi, linux-arm-kernel, linux-kernel, linux-stm32,
	linux-mediatek, linux-rockchip, linux-tegra, 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.

Signed-off-by: Joshua Crofts <crofts@kernel.org>
---
 drivers/spi/spi-mtk-nor.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-mtk-nor.c b/drivers/spi/spi-mtk-nor.c
index 6b6e55d68048..79e54ccf2a6a 100644
--- a/drivers/spi/spi-mtk-nor.c
+++ b/drivers/spi/spi-mtk-nor.c
@@ -932,7 +932,6 @@ static int mtk_nor_probe(struct platform_device *pdev)
 	pm_runtime_put_noidle(&pdev->dev);
 	pm_runtime_disable(&pdev->dev);
 	pm_runtime_set_suspended(&pdev->dev);
-	pm_runtime_dont_use_autosuspend(&pdev->dev);
 
 err_disable_clk:
 	mtk_nor_disable_clk(sp);
@@ -949,7 +948,6 @@ static void mtk_nor_remove(struct platform_device *pdev)
 
 	pm_runtime_disable(&pdev->dev);
 	pm_runtime_set_suspended(&pdev->dev);
-	pm_runtime_dont_use_autosuspend(&pdev->dev);
 
 	mtk_nor_disable_clk(sp);
 }

-- 
2.56.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 08/11] spi: orion: remove redundant pm_runtime_dont_use_autosuspend() calls
  2026-11-08 12:16 [PATCH 00/11] spi: remove redundant pm_runtime_dont_use_autosuspend() calls Joshua Crofts
                   ` (6 preceding siblings ...)
  2026-11-08 12:16 ` [PATCH 07/11] spi: mtk-nor: " Joshua Crofts
@ 2026-11-08 12:16 ` Joshua Crofts
  2026-11-08 12:16 ` [PATCH 09/11] spi: rockchip-sfc: " Joshua Crofts
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 14+ messages in thread
From: Joshua Crofts @ 2026-11-08 12:16 UTC (permalink / raw)
  To: Vladimir Moravcevic, Tzu-Hao Wei, Swark Yang, Prasad Bolisetty,
	Mark Brown, Karthikeyan Mitran, Alain Volmat, Maxime Coquelin,
	Alexandre Torgue, Michal Simek, Matthias Brugger,
	AngeloGioacchino Del Regno, Heiko Stuebner, Jyan Chou,
	Yu-Chun Lin, Laxman Dewangan, Thierry Reding, Jonathan Hunter,
	Sowjanya Komatineni
  Cc: linux-spi, linux-arm-kernel, linux-kernel, linux-stm32,
	linux-mediatek, linux-rockchip, linux-tegra, 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.

Signed-off-by: Joshua Crofts <crofts@kernel.org>
---
 drivers/spi/spi-orion.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-orion.c b/drivers/spi/spi-orion.c
index b8882229c054..190842f710c3 100644
--- a/drivers/spi/spi-orion.c
+++ b/drivers/spi/spi-orion.c
@@ -789,7 +789,6 @@ static int orion_spi_probe(struct platform_device *pdev)
 	pm_runtime_disable(&pdev->dev);
 	pm_runtime_put_noidle(&pdev->dev);
 	pm_runtime_set_suspended(&pdev->dev);
-	pm_runtime_dont_use_autosuspend(&pdev->dev);
 
 	return status;
 }
@@ -806,7 +805,6 @@ static void orion_spi_remove(struct platform_device *pdev)
 	pm_runtime_disable(&pdev->dev);
 	pm_runtime_put_noidle(&pdev->dev);
 	pm_runtime_set_suspended(&pdev->dev);
-	pm_runtime_dont_use_autosuspend(&pdev->dev);
 }
 
 MODULE_ALIAS("platform:" DRIVER_NAME);

-- 
2.56.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 09/11] spi: rockchip-sfc: remove redundant pm_runtime_dont_use_autosuspend() calls
  2026-11-08 12:16 [PATCH 00/11] spi: remove redundant pm_runtime_dont_use_autosuspend() calls Joshua Crofts
                   ` (7 preceding siblings ...)
  2026-11-08 12:16 ` [PATCH 08/11] spi: orion: " Joshua Crofts
@ 2026-11-08 12:16 ` Joshua Crofts
  2026-11-08 12:16 ` [PATCH 10/11] spi: rtk-nor: " Joshua Crofts
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 14+ messages in thread
From: Joshua Crofts @ 2026-11-08 12:16 UTC (permalink / raw)
  To: Vladimir Moravcevic, Tzu-Hao Wei, Swark Yang, Prasad Bolisetty,
	Mark Brown, Karthikeyan Mitran, Alain Volmat, Maxime Coquelin,
	Alexandre Torgue, Michal Simek, Matthias Brugger,
	AngeloGioacchino Del Regno, Heiko Stuebner, Jyan Chou,
	Yu-Chun Lin, Laxman Dewangan, Thierry Reding, Jonathan Hunter,
	Sowjanya Komatineni
  Cc: linux-spi, linux-arm-kernel, linux-kernel, linux-stm32,
	linux-mediatek, linux-rockchip, linux-tegra, 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.

Signed-off-by: Joshua Crofts <crofts@kernel.org>
---
 drivers/spi/spi-rockchip-sfc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-rockchip-sfc.c b/drivers/spi/spi-rockchip-sfc.c
index a85a260ba95f..2d24765afd3f 100644
--- a/drivers/spi/spi-rockchip-sfc.c
+++ b/drivers/spi/spi-rockchip-sfc.c
@@ -730,7 +730,6 @@ static int rockchip_sfc_probe(struct platform_device *pdev)
 	pm_runtime_put_noidle(dev);
 	pm_runtime_disable(dev);
 	pm_runtime_set_suspended(dev);
-	pm_runtime_dont_use_autosuspend(dev);
 err_irq:
 	clk_disable_unprepare(sfc->clk);
 err_clk:
@@ -749,7 +748,6 @@ static void rockchip_sfc_remove(struct platform_device *pdev)
 	pm_runtime_put_noidle(&pdev->dev);
 	pm_runtime_disable(&pdev->dev);
 	pm_runtime_set_suspended(&pdev->dev);
-	pm_runtime_dont_use_autosuspend(&pdev->dev);
 	if (sfc->use_dma) {
 		dma_unmap_single(&pdev->dev, sfc->dma_buffer, sfc->max_iosize,
 				 DMA_BIDIRECTIONAL);

-- 
2.56.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 10/11] spi: rtk-nor: remove redundant pm_runtime_dont_use_autosuspend() calls
  2026-11-08 12:16 [PATCH 00/11] spi: remove redundant pm_runtime_dont_use_autosuspend() calls Joshua Crofts
                   ` (8 preceding siblings ...)
  2026-11-08 12:16 ` [PATCH 09/11] spi: rockchip-sfc: " Joshua Crofts
@ 2026-11-08 12:16 ` Joshua Crofts
  2026-11-08 12:16 ` [PATCH 11/11] spi: tegra210-quad: " Joshua Crofts
  2026-11-09 20:12 ` [PATCH 00/11] spi: " Mark Brown
  11 siblings, 0 replies; 14+ messages in thread
From: Joshua Crofts @ 2026-11-08 12:16 UTC (permalink / raw)
  To: Vladimir Moravcevic, Tzu-Hao Wei, Swark Yang, Prasad Bolisetty,
	Mark Brown, Karthikeyan Mitran, Alain Volmat, Maxime Coquelin,
	Alexandre Torgue, Michal Simek, Matthias Brugger,
	AngeloGioacchino Del Regno, Heiko Stuebner, Jyan Chou,
	Yu-Chun Lin, Laxman Dewangan, Thierry Reding, Jonathan Hunter,
	Sowjanya Komatineni
  Cc: linux-spi, linux-arm-kernel, linux-kernel, linux-stm32,
	linux-mediatek, linux-rockchip, linux-tegra, 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.

Signed-off-by: Joshua Crofts <crofts@kernel.org>
---
 drivers/spi/spi-rtk-nor.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-rtk-nor.c b/drivers/spi/spi-rtk-nor.c
index 75856c31d2e6..202f9df8739e 100644
--- a/drivers/spi/spi-rtk-nor.c
+++ b/drivers/spi/spi-rtk-nor.c
@@ -539,7 +539,6 @@ static int rtk_spi_probe(struct platform_device *pdev)
 	pm_runtime_put_noidle(dev);
 	pm_runtime_disable(dev);
 	pm_runtime_set_suspended(dev);
-	pm_runtime_dont_use_autosuspend(dev);
 	reset_control_assert(host->rstc);
 	clk_disable_unprepare(host->clk);
 
@@ -560,7 +559,6 @@ static void rtk_spi_remove(struct platform_device *pdev)
 	pm_runtime_put_noidle(dev);
 	pm_runtime_disable(dev);
 	pm_runtime_set_suspended(dev);
-	pm_runtime_dont_use_autosuspend(dev);
 	reset_control_assert(host->rstc);
 	clk_disable_unprepare(host->clk);
 }

-- 
2.56.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 11/11] spi: tegra210-quad: remove redundant pm_runtime_dont_use_autosuspend() calls
  2026-11-08 12:16 [PATCH 00/11] spi: remove redundant pm_runtime_dont_use_autosuspend() calls Joshua Crofts
                   ` (9 preceding siblings ...)
  2026-11-08 12:16 ` [PATCH 10/11] spi: rtk-nor: " Joshua Crofts
@ 2026-11-08 12:16 ` Joshua Crofts
  2026-11-09 20:12 ` [PATCH 00/11] spi: " Mark Brown
  11 siblings, 0 replies; 14+ messages in thread
From: Joshua Crofts @ 2026-11-08 12:16 UTC (permalink / raw)
  To: Vladimir Moravcevic, Tzu-Hao Wei, Swark Yang, Prasad Bolisetty,
	Mark Brown, Karthikeyan Mitran, Alain Volmat, Maxime Coquelin,
	Alexandre Torgue, Michal Simek, Matthias Brugger,
	AngeloGioacchino Del Regno, Heiko Stuebner, Jyan Chou,
	Yu-Chun Lin, Laxman Dewangan, Thierry Reding, Jonathan Hunter,
	Sowjanya Komatineni
  Cc: linux-spi, linux-arm-kernel, linux-kernel, linux-stm32,
	linux-mediatek, linux-rockchip, linux-tegra, 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.

Signed-off-by: Joshua Crofts <crofts@kernel.org>
---
 drivers/spi/spi-tegra210-quad.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-tegra210-quad.c b/drivers/spi/spi-tegra210-quad.c
index d8cca3aa276b..5178cf7eca68 100644
--- a/drivers/spi/spi-tegra210-quad.c
+++ b/drivers/spi/spi-tegra210-quad.c
@@ -2185,7 +2185,6 @@ static int tegra_qspi_probe(struct platform_device *pdev)
 exit_destroy_wq:
 	destroy_workqueue(tqspi->wq);
 exit_pm_disable:
-	pm_runtime_dont_use_autosuspend(&pdev->dev);
 	pm_runtime_force_suspend(&pdev->dev);
 	tegra_qspi_deinit_dma(tqspi);
 	return ret;
@@ -2205,7 +2204,6 @@ static void tegra_qspi_remove(struct platform_device *pdev)
 	spi_unregister_controller(host);
 	free_irq(tqspi->irq, tqspi);
 	destroy_workqueue(tqspi->wq);
-	pm_runtime_dont_use_autosuspend(&pdev->dev);
 	pm_runtime_force_suspend(&pdev->dev);
 	tegra_qspi_deinit_dma(tqspi);
 }

-- 
2.56.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 00/11] spi: remove redundant pm_runtime_dont_use_autosuspend() calls
  2026-11-08 12:16 [PATCH 00/11] spi: remove redundant pm_runtime_dont_use_autosuspend() calls Joshua Crofts
                   ` (10 preceding siblings ...)
  2026-11-08 12:16 ` [PATCH 11/11] spi: tegra210-quad: " Joshua Crofts
@ 2026-11-09 20:12 ` Mark Brown
  11 siblings, 0 replies; 14+ messages in thread
From: Mark Brown @ 2026-11-09 20:12 UTC (permalink / raw)
  To: Vladimir Moravcevic, Tzu-Hao Wei, Swark Yang, Prasad Bolisetty,
	Karthikeyan Mitran, Alain Volmat, Maxime Coquelin,
	Alexandre Torgue, Michal Simek, Matthias Brugger,
	AngeloGioacchino Del Regno, Heiko Stuebner, Jyan Chou,
	Yu-Chun Lin, Laxman Dewangan, Thierry Reding, Jonathan Hunter,
	Sowjanya Komatineni, Joshua Crofts
  Cc: linux-spi, linux-arm-kernel, linux-kernel, linux-stm32,
	linux-mediatek, linux-rockchip, linux-tegra

On Sun, 08 Nov 2026 13:16:47 +0100, Joshua Crofts wrote:
> spi: 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.
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-7.5

Thanks!

[01/11] spi: axiado: remove redundant pm_runtime_dont_use_autosuspend() calls
        https://git.kernel.org/broonie/spi/c/9c5ba93a5a13
[02/11] spi: cadence-quadspi: remove redundant pm_runtime_dont_use_autosuspend() calls
        https://git.kernel.org/broonie/spi/c/4a1cab30f7e0
[03/11] spi: cadence: remove redundant pm_runtime_dont_use_autosuspend() calls
        https://git.kernel.org/broonie/spi/c/e5187e13ce1f
[04/11] spi: stm32: remove redundant pm_runtime_dont_use_autosuspend() calls
        https://git.kernel.org/broonie/spi/c/6d2a6ec8942d
[05/11] spi: stm32-qspi: remove redundant pm_runtime_dont_use_autosuspend() calls
        https://git.kernel.org/broonie/spi/c/73f3bb4134f4
[06/11] spi: zynqmp-gqspi: remove redundant pm_runtime_dont_use_autosuspend() calls
        https://git.kernel.org/broonie/spi/c/affeee16b705
[07/11] spi: mtk-nor: remove redundant pm_runtime_dont_use_autosuspend() calls
        https://git.kernel.org/broonie/spi/c/634d73e929cb
[08/11] spi: orion: remove redundant pm_runtime_dont_use_autosuspend() calls
        https://git.kernel.org/broonie/spi/c/ca8b81eca7f1
[09/11] spi: rockchip-sfc: remove redundant pm_runtime_dont_use_autosuspend() calls
        https://git.kernel.org/broonie/spi/c/b90c9acd16cb
[10/11] spi: rtk-nor: remove redundant pm_runtime_dont_use_autosuspend() calls
        https://git.kernel.org/broonie/spi/c/1fcfd0275515
[11/11] spi: tegra210-quad: remove redundant pm_runtime_dont_use_autosuspend() calls
        https://git.kernel.org/broonie/spi/c/ff3bd58298fc

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 04/11] spi: stm32: remove redundant pm_runtime_dont_use_autosuspend() calls
  2026-11-08 12:16 ` [PATCH 04/11] spi: stm32: " Joshua Crofts
@ 2026-11-17  9:04   ` Alain Volmat
  0 siblings, 0 replies; 14+ messages in thread
From: Alain Volmat @ 2026-11-17  9:04 UTC (permalink / raw)
  To: Joshua Crofts
  Cc: Vladimir Moravcevic, Tzu-Hao Wei, Swark Yang, Prasad Bolisetty,
	Mark Brown, Karthikeyan Mitran, Maxime Coquelin,
	Alexandre Torgue, Michal Simek, Matthias Brugger,
	AngeloGioacchino Del Regno, Heiko Stuebner, Jyan Chou,
	Yu-Chun Lin, Laxman Dewangan, Thierry Reding, Jonathan Hunter,
	Sowjanya Komatineni, linux-spi, linux-arm-kernel, linux-kernel,
	linux-stm32, linux-mediatek, linux-rockchip, linux-tegra

Hi,

On Sun, Nov 08, 2026 at 01:16:51PM +0100, Joshua Crofts 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.
> 
> Remove the redundant function calls.
> 
> Signed-off-by: Joshua Crofts <crofts@kernel.org>
> ---
>  drivers/spi/spi-stm32.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c
> index 4c3ae546afc0..95994278cdaa 100644
> --- a/drivers/spi/spi-stm32.c
> +++ b/drivers/spi/spi-stm32.c
> @@ -2544,7 +2544,6 @@ static int stm32_spi_probe(struct platform_device *pdev)
>  	pm_runtime_disable(&pdev->dev);
>  	pm_runtime_put_noidle(&pdev->dev);
>  	pm_runtime_set_suspended(&pdev->dev);
> -	pm_runtime_dont_use_autosuspend(&pdev->dev);
>  
>  	if (spi->mdma_rx)
>  		dma_release_channel(spi->mdma_rx);
> @@ -2574,7 +2573,6 @@ static void stm32_spi_remove(struct platform_device *pdev)
>  	pm_runtime_disable(&pdev->dev);
>  	pm_runtime_put_noidle(&pdev->dev);
>  	pm_runtime_set_suspended(&pdev->dev);
> -	pm_runtime_dont_use_autosuspend(&pdev->dev);
>  
>  	if (ctrl->dma_tx)
>  		dma_release_channel(ctrl->dma_tx);
> 

Reviewed-by: Alain Volmat <alain.volmat@foss.st.com>

Regards,
Alain

> -- 
> 2.56.0
> 

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-11-17  9:04 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-08 12:16 [PATCH 00/11] spi: remove redundant pm_runtime_dont_use_autosuspend() calls Joshua Crofts
2026-11-08 12:16 ` [PATCH 01/11] spi: axiado: " Joshua Crofts
2026-11-08 12:16 ` [PATCH 02/11] spi: cadence-quadspi: " Joshua Crofts
2026-11-08 12:16 ` [PATCH 03/11] spi: cadence: " Joshua Crofts
2026-11-08 12:16 ` [PATCH 04/11] spi: stm32: " Joshua Crofts
2026-11-17  9:04   ` Alain Volmat
2026-11-08 12:16 ` [PATCH 05/11] spi: stm32-qspi: " Joshua Crofts
2026-11-08 12:16 ` [PATCH 06/11] spi: zynqmp-gqspi: " Joshua Crofts
2026-11-08 12:16 ` [PATCH 07/11] spi: mtk-nor: " Joshua Crofts
2026-11-08 12:16 ` [PATCH 08/11] spi: orion: " Joshua Crofts
2026-11-08 12:16 ` [PATCH 09/11] spi: rockchip-sfc: " Joshua Crofts
2026-11-08 12:16 ` [PATCH 10/11] spi: rtk-nor: " Joshua Crofts
2026-11-08 12:16 ` [PATCH 11/11] spi: tegra210-quad: " Joshua Crofts
2026-11-09 20:12 ` [PATCH 00/11] spi: " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®