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

Pei Xiao
2026-03-12T23:11:40Z

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.

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

drivers/spi/spi-axiado.c | 23 +++----------
drivers/spi/spi-bcm63xx-hsspi.c | 44 +++++++-----------------
drivers/spi/spi-bcmbca-hsspi.c | 47 +++++++++----------------
drivers/spi/spi-img-spfi.c | 14 ++------
drivers/spi/spi-imx.c | 15 ++------
drivers/spi/spi-npcm-pspi.c | 19 ++++------
drivers/spi/spi-orion.c | 10 ++----
drivers/spi/spi-rockchip-sfc.c | 20 ++---------
drivers/spi/spi-sifive.c | 20 ++++-------
drivers/spi/spi-slave-mt27xx.c | 8 +----
drivers/spi/spi-st-ssc4.c | 14 +++-----
drivers/spi/spi-stm32-qspi.c | 17 +++------
drivers/spi/spi-stm32.c | 59 ++++++++++----------------------
drivers/spi/spi-sunplus-sp7021.c | 15 +-------
drivers/spi/spi-uniphier.c | 15 +++-----
drivers/spi/spi-zynq-qspi.c | 28 ++++-----------
drivers/spi/spi-zynqmp-gqspi.c | 17 ++-------
17 files changed, 95 insertions(+), 290 deletions(-)

--
2.25.1