[PATCH v5 00/17] cleanup in spi by use devm_clk_get_enabled

Pei Xiao
2026-03-19T22:48:05Z

I know that many old SPI drivers should not be modified for hardware
stability and to reduce maintenance effort. But I can't help cleaning them
up. To minimize the introduction of issues, I tried not to modify the
timing of those hardware clock enables.

Maybe I need to double-check; sending too many versions has caused
a waste of public resources and wasted everyone's time.
---
changes in v5:
remove warning: unused variable by kernel test robot check
fix error message but having a line in stm32 patch
changes in v4: modify all commit info
changes in v3: remove disable clk in remove function
changes in v2: fix error message but having a line break
Missing error code argument to dev_err_probe()
---

Pei Xiao (17):
spi: axiado: Simplify clock management with devm_clk_get_enabled()
spi: bcm63xx-hsspi: Simplify clock handling with
devm_clk_get_enabled()
spi: bcmbca-hsspi: Simplify clock handling with devm_clk_get_enabled()
spi: img-spfi: Simplify clock handling with devm_clk_get_enabled()
spi: imx: Simplify clock handling with devm_clk_get_enabled()
spi: npcm-pspi: Simplify clock handling with devm_clk_get_enabled()
spi: orion: Simplify clock handling with devm_clk_get_enabled()
spi: rockchip-sfc: Simplify clock handling with devm_clk_get_enabled()
spi: sifive: Simplify clock handling with devm_clk_get_enabled()
spi: slave-mt27xx: Simplify clock handling with devm_clk_get_enabled()
spi: st: Simplify clock handling with devm_clk_get_enabled()
spi: stm32-qspi: Simplify clock handling with devm_clk_get_enabled()
spi: stm32: Simplify clock handling with devm_clk_get_enabled()
spi: sunplus-sp7021: Simplify clock handling with
devm_clk_get_enabled()
spi: uniphier: Simplify clock handling with devm_clk_get_enabled()
spi: zynq-qspi: Simplify clock handling with devm_clk_get_enabled()
spi: zynqmp-gqspi: Simplify clock handling with devm_clk_get_enabled()

drivers/spi/spi-axiado.c | 32 +++++------------
drivers/spi/spi-bcm63xx-hsspi.c | 46 +++++++-----------------
drivers/spi/spi-bcmbca-hsspi.c | 49 +++++++++----------------
drivers/spi/spi-img-spfi.c | 18 ++--------
drivers/spi/spi-imx.c | 15 ++------
drivers/spi/spi-npcm-pspi.c | 20 ++++-------
drivers/spi/spi-orion.c | 12 ++-----
drivers/spi/spi-rockchip-sfc.c | 22 ++----------
drivers/spi/spi-sifive.c | 21 ++++-------
drivers/spi/spi-slave-mt27xx.c | 8 +----
drivers/spi/spi-st-ssc4.c | 17 +++------
drivers/spi/spi-stm32-qspi.c | 18 +++-------
drivers/spi/spi-stm32.c | 62 +++++++++-----------------------
drivers/spi/spi-sunplus-sp7021.c | 15 +-------
drivers/spi/spi-uniphier.c | 17 +++------
drivers/spi/spi-zynq-qspi.c | 31 ++++------------
drivers/spi/spi-zynqmp-gqspi.c | 19 ++--------
17 files changed, 97 insertions(+), 325 deletions(-)

--
2.25.1