[PATCH 00/39] spi: use modern PM macros

Jisheng Zhang posted 39 patches 1 month, 4 weeks ago
drivers/spi/atmel-quadspi.c        | 16 +++++-----
drivers/spi/spi-amlogic-spifc-a1.c | 15 ++++------
drivers/spi/spi-at91-usart.c       |  8 ++---
drivers/spi/spi-axiado.c           | 15 +++++-----
drivers/spi/spi-bcm-qspi.c         |  6 ++--
drivers/spi/spi-bcm63xx-hsspi.c    |  8 ++---
drivers/spi/spi-bcmbca-hsspi.c     |  8 ++---
drivers/spi/spi-brcmstb-qspi.c     |  2 +-
drivers/spi/spi-cadence.c          | 15 +++++-----
drivers/spi/spi-coldfire-qspi.c    | 12 +++-----
drivers/spi/spi-dln2.c             | 11 ++-----
drivers/spi/spi-dw-pci.c           |  6 ++--
drivers/spi/spi-fsl-dspi.c         |  6 ++--
drivers/spi/spi-fsl-espi.c         | 11 ++-----
drivers/spi/spi-fsl-lpspi.c        |  6 ++--
drivers/spi/spi-geni-qcom.c        | 15 +++++-----
drivers/spi/spi-img-spfi.c         | 11 ++-----
drivers/spi/spi-iproc-qspi.c       |  2 +-
drivers/spi/spi-loongson-core.c    |  4 +--
drivers/spi/spi-loongson-pci.c     |  2 +-
drivers/spi/spi-loongson-plat.c    |  2 +-
drivers/spi/spi-meson-spifc.c      | 14 ++++-----
drivers/spi/spi-mt65xx.c           | 11 ++-----
drivers/spi/spi-mtk-nor.c          | 15 +++++-----
drivers/spi/spi-mxic.c             |  9 +++---
drivers/spi/spi-omap2-mcspi.c      |  9 +++---
drivers/spi/spi-orion.c            | 12 +++-----
drivers/spi/spi-pl022.c            | 10 ++-----
drivers/spi/spi-qcom-qspi.c        | 16 +++++-----
drivers/spi/spi-qup.c              | 14 ++++-----
drivers/spi/spi-rockchip-sfc.c     | 12 +++-----
drivers/spi/spi-rockchip.c         | 12 +++-----
drivers/spi/spi-s3c64xx.c          | 12 +++-----
drivers/spi/spi-slave-mt27xx.c     | 12 +++-----
drivers/spi/spi-sprd.c             |  9 +++---
drivers/spi/spi-sunplus-sp7021.c   | 16 +++++-----
drivers/spi/spi-synquacer.c        | 10 +++----
drivers/spi/spi-tegra114.c         | 10 +++----
drivers/spi/spi-tegra20-sflash.c   | 10 +++----
drivers/spi/spi-tegra20-slink.c    | 14 ++++-----
drivers/spi/spi-tegra210-quad.c    | 14 ++++-----
drivers/spi/spi-topcliff-pch.c     | 47 +++++++++++++-----------------
drivers/spi/spi-zynqmp-gqspi.c     | 15 +++++-----
43 files changed, 195 insertions(+), 289 deletions(-)
[PATCH 00/39] spi: use modern PM macros
Posted by Jisheng Zhang 1 month, 4 weeks ago
Use the modern PM macros for the suspend and resume functions to be
automatically dropped by the compiler when CONFIG_PM or
CONFIG_PM_SLEEP are disabled, without having to use #ifdef guards or
__maybe_unused.

Compiled testd for arm, arm64, riscv and riscv64 with below
combinations:
!PM && !PM_SLEEP
PM && !PM_SLEEP
PM && PM_SLEEP

Jisheng Zhang (39):
  spi: atmel-quadspi: use modern PM macros
  spi: amlogic-spifc-a1: use modern PM macros
  spi: at91-usart: use modern PM macros
  spi: axiado: use modern PM macros
  spi: bcm-qspi: use modern PM macros
  spi: bcm63xx-hsspi: use modern PM macros
  spi: bcmbca-hsspi: use modern PM macros
  spi: cadence: use modern PM macros
  spi: coldfire-qspi: use modern PM macros
  spi: dln2: use modern PM macros
  spi: dw-pci: use modern PM macros
  spi: spi-fsl-dspi: use modern PM macros
  spi: fsl-espi: use modern PM macros
  spi: fsl-lpspi: use modern PM macros
  spi: qcom-geni: use modern PM macros
  spi: img-spfi: use modern PM macros
  spi: loongson: use modern PM macros
  spi: meson-spifc: use modern PM macros
  spi: mt65xx: use modern PM macros
  spi: mtk-nor: use modern PM macros
  spi: mxic: use modern PM macros
  spi: omap2-mcspi: use modern PM macros
  spi: orion: use modern PM macros
  spi: pl022: use modern PM macros
  spi: spi-qcom-qspi: use modern PM macros
  spi: qup: use modern PM macros
  spi: rockchip-sfc: use modern PM macros
  spi: rockchip: use modern PM macros
  spi: s3c64xx: use modern PM macros
  spi: slave-mt27xx: use modern PM macros
  spi: sprd: use modern PM macros
  spi: sunplus-sp7021: use modern PM macros
  spi: syncuacer: use modern PM macros
  spi: tegra114: use modern PM macros
  spi: tegra20-sflash: use modern PM macros
  spi: tegra20-slink: use modern PM macros
  spi: tegra210-quad: use modern PM macros
  spi: topcliff-pch: use modern PM macros
  spi: zynqmp-gqspi: use modern PM macros

 drivers/spi/atmel-quadspi.c        | 16 +++++-----
 drivers/spi/spi-amlogic-spifc-a1.c | 15 ++++------
 drivers/spi/spi-at91-usart.c       |  8 ++---
 drivers/spi/spi-axiado.c           | 15 +++++-----
 drivers/spi/spi-bcm-qspi.c         |  6 ++--
 drivers/spi/spi-bcm63xx-hsspi.c    |  8 ++---
 drivers/spi/spi-bcmbca-hsspi.c     |  8 ++---
 drivers/spi/spi-brcmstb-qspi.c     |  2 +-
 drivers/spi/spi-cadence.c          | 15 +++++-----
 drivers/spi/spi-coldfire-qspi.c    | 12 +++-----
 drivers/spi/spi-dln2.c             | 11 ++-----
 drivers/spi/spi-dw-pci.c           |  6 ++--
 drivers/spi/spi-fsl-dspi.c         |  6 ++--
 drivers/spi/spi-fsl-espi.c         | 11 ++-----
 drivers/spi/spi-fsl-lpspi.c        |  6 ++--
 drivers/spi/spi-geni-qcom.c        | 15 +++++-----
 drivers/spi/spi-img-spfi.c         | 11 ++-----
 drivers/spi/spi-iproc-qspi.c       |  2 +-
 drivers/spi/spi-loongson-core.c    |  4 +--
 drivers/spi/spi-loongson-pci.c     |  2 +-
 drivers/spi/spi-loongson-plat.c    |  2 +-
 drivers/spi/spi-meson-spifc.c      | 14 ++++-----
 drivers/spi/spi-mt65xx.c           | 11 ++-----
 drivers/spi/spi-mtk-nor.c          | 15 +++++-----
 drivers/spi/spi-mxic.c             |  9 +++---
 drivers/spi/spi-omap2-mcspi.c      |  9 +++---
 drivers/spi/spi-orion.c            | 12 +++-----
 drivers/spi/spi-pl022.c            | 10 ++-----
 drivers/spi/spi-qcom-qspi.c        | 16 +++++-----
 drivers/spi/spi-qup.c              | 14 ++++-----
 drivers/spi/spi-rockchip-sfc.c     | 12 +++-----
 drivers/spi/spi-rockchip.c         | 12 +++-----
 drivers/spi/spi-s3c64xx.c          | 12 +++-----
 drivers/spi/spi-slave-mt27xx.c     | 12 +++-----
 drivers/spi/spi-sprd.c             |  9 +++---
 drivers/spi/spi-sunplus-sp7021.c   | 16 +++++-----
 drivers/spi/spi-synquacer.c        | 10 +++----
 drivers/spi/spi-tegra114.c         | 10 +++----
 drivers/spi/spi-tegra20-sflash.c   | 10 +++----
 drivers/spi/spi-tegra20-slink.c    | 14 ++++-----
 drivers/spi/spi-tegra210-quad.c    | 14 ++++-----
 drivers/spi/spi-topcliff-pch.c     | 47 +++++++++++++-----------------
 drivers/spi/spi-zynqmp-gqspi.c     | 15 +++++-----
 43 files changed, 195 insertions(+), 289 deletions(-)

-- 
2.53.0
Re: [PATCH 00/39] spi: use modern PM macros
Posted by Mark Brown 1 month, 3 weeks ago
On Mon, 03 Aug 2026 22:19:24 +0800, Jisheng Zhang wrote:
> spi: use modern PM macros
> 
> Use the modern PM macros for the suspend and resume functions to be
> automatically dropped by the compiler when CONFIG_PM or
> CONFIG_PM_SLEEP are disabled, without having to use #ifdef guards or
> __maybe_unused.
> 
> [...]

Applied to

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

Thanks!

[01/39] spi: atmel-quadspi: use modern PM macros
        https://git.kernel.org/broonie/spi/c/c4a452dd40aa
[02/39] spi: amlogic-spifc-a1: use modern PM macros
        https://git.kernel.org/broonie/spi/c/6fe48b995296
[03/39] spi: at91-usart: use modern PM macros
        https://git.kernel.org/broonie/spi/c/363557bf4d1f
[04/39] spi: axiado: use modern PM macros
        https://git.kernel.org/broonie/spi/c/a7fe79fd31d5
[05/39] spi: bcm-qspi: use modern PM macros
        https://git.kernel.org/broonie/spi/c/6062e0f2045e
[06/39] spi: bcm63xx-hsspi: use modern PM macros
        https://git.kernel.org/broonie/spi/c/408ba1d06ee1
[07/39] spi: bcmbca-hsspi: use modern PM macros
        https://git.kernel.org/broonie/spi/c/f95bf30ed173
[08/39] spi: cadence: use modern PM macros
        https://git.kernel.org/broonie/spi/c/1e64a0671159
[09/39] spi: coldfire-qspi: use modern PM macros
        https://git.kernel.org/broonie/spi/c/7975bfcf50dd
[10/39] spi: dln2: use modern PM macros
        https://git.kernel.org/broonie/spi/c/a0b764e3ec76
[11/39] spi: dw-pci: use modern PM macros
        https://git.kernel.org/broonie/spi/c/65172b5d381a
[12/39] spi: spi-fsl-dspi: use modern PM macros
        https://git.kernel.org/broonie/spi/c/cda6ef242a6f
[13/39] spi: fsl-espi: use modern PM macros
        https://git.kernel.org/broonie/spi/c/4669d74be689
[14/39] spi: fsl-lpspi: use modern PM macros
        https://git.kernel.org/broonie/spi/c/4f6d93537f01
[15/39] spi: qcom-geni: use modern PM macros
        https://git.kernel.org/broonie/spi/c/527adbf1a193
[16/39] spi: img-spfi: use modern PM macros
        https://git.kernel.org/broonie/spi/c/88672e90a945
[17/39] spi: loongson: use modern PM macros
        https://git.kernel.org/broonie/spi/c/8de18aced458
[18/39] spi: meson-spifc: use modern PM macros
        https://git.kernel.org/broonie/spi/c/aceceea2a44a
[19/39] spi: mt65xx: use modern PM macros
        https://git.kernel.org/broonie/spi/c/06f9d950cb4c
[20/39] spi: mtk-nor: use modern PM macros
        https://git.kernel.org/broonie/spi/c/fcb6a6e73e58
[21/39] spi: mxic: use modern PM macros
        https://git.kernel.org/broonie/spi/c/169d9f0fd984
[22/39] spi: omap2-mcspi: use modern PM macros
        https://git.kernel.org/broonie/spi/c/aa9d02583a91
[23/39] spi: orion: use modern PM macros
        https://git.kernel.org/broonie/spi/c/4fbaf6e6f112
[24/39] spi: pl022: use modern PM macros
        https://git.kernel.org/broonie/spi/c/9329021dcb44
[25/39] spi: spi-qcom-qspi: use modern PM macros
        https://git.kernel.org/broonie/spi/c/498e32cba465
[26/39] spi: qup: use modern PM macros
        https://git.kernel.org/broonie/spi/c/d87ae277834d
[27/39] spi: rockchip-sfc: use modern PM macros
        https://git.kernel.org/broonie/spi/c/07d3854aded4
[28/39] spi: rockchip: use modern PM macros
        https://git.kernel.org/broonie/spi/c/c88fb9432198
[29/39] spi: s3c64xx: use modern PM macros
        https://git.kernel.org/broonie/spi/c/1c892a2f00a7
[30/39] spi: slave-mt27xx: use modern PM macros
        https://git.kernel.org/broonie/spi/c/abc34022d658
[31/39] spi: sprd: use modern PM macros
        https://git.kernel.org/broonie/spi/c/96e9434dee1d
[32/39] spi: sunplus-sp7021: use modern PM macros
        https://git.kernel.org/broonie/spi/c/3c71dabf596a
[33/39] spi: syncuacer: use modern PM macros
        https://git.kernel.org/broonie/spi/c/7bf07ac9be73
[34/39] spi: tegra114: use modern PM macros
        https://git.kernel.org/broonie/spi/c/46aec256a5f0
[35/39] spi: tegra20-sflash: use modern PM macros
        https://git.kernel.org/broonie/spi/c/f4bc18af3b3c
[36/39] spi: tegra20-slink: use modern PM macros
        https://git.kernel.org/broonie/spi/c/355848a0f90a
[37/39] spi: tegra210-quad: use modern PM macros
        https://git.kernel.org/broonie/spi/c/e3f3d046f3f6
[38/39] spi: topcliff-pch: use modern PM macros
        https://git.kernel.org/broonie/spi/c/2dae40e9dcfb
[39/39] spi: zynqmp-gqspi: use modern PM macros
        https://git.kernel.org/broonie/spi/c/bec2ec4186d0

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