Skip to content

This patch set did some clean up and add runtime pm support for flexspi driver

Haibo Chen imx linux-spi lkml 3 versions – In review

Get series with b4
b4 am [email protected] change-id 20250421-flexspipatch-1cf724d4213d

Versions newest first

  1. v3 Latest5 patches 4 repliesIn review
  2. v25 patches 4 repliesSuperseded
  3. v15 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- change the PATCH2, switch to use RUNTIME_PM_OPS instead of SET_RUNTIME_PM_OPS remove CONFIG_PM/CONFIG_PM_SLEEP, and use pm_ptr for PM ops
- fix a type for PATCH5
- Link to v2: https://lore.kernel.org/r/[email protected]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5spi: spi-nxp-fspi: remove the goto in probedrivers/spi/spi-nxp-fspi.c+27 -600 replies
2/5spi: spi-nxp-fspi: enable runtime pm for fspidrivers/spi/spi-nxp-fspi.c+76 -173 replies
3/5spi: spi-nxp-fspi: use guard(mutex) to simplify the codedrivers/spi/spi-nxp-fspi.c+1 -30 replies
4/5spi: spi-nxp-fspi: remove the unchecked return value for nxp_fspi_clk_disable_unprepdrivers/spi/spi-nxp-fspi.c+3 -30 replies
5/5spi: nxp-fspi: use devm instead of remove for driver detachdrivers/spi/spi-nxp-fspi.c+22 -190 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/5] This patch set did some clean up and add runtime pm support for flexspi driver

PATCH1/3/4 to clean up the code, make the code more readable
PATCH2 add the runtime pm support
PATCH5 use devm_add_action_or_reset() to replace remove() callback, this can avoid
oops when do bind/unbind test

---
Changes in v3:
- change the PATCH2, switch to use RUNTIME_PM_OPS instead of SET_RUNTIME_PM_OPS remove CONFIG_PM/CONFIG_PM_SLEEP, and use pm_ptr for PM ops
- fix a type for PATCH5
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- only change the PATCH2, add #ifdef CONFIG_PM_SLEEP for nxp_fspi_suspend() to avoid build error if CONFIG_PM=n and CONFIG_PM_SLEEP=y, no change for all other patches.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Haibo Chen (4):
spi: spi-nxp-fspi: remove the goto in probe
spi: spi-nxp-fspi: enable runtime pm for fspi
spi: spi-nxp-fspi: use guard(mutex) to simplify the code
spi: spi-nxp-fspi: remove the unchecked return value for nxp_fspi_clk_disable_unprep

Han Xu (1):
spi: nxp-fspi: use devm instead of remove for driver detach

 drivers/spi/spi-nxp-fspi.c | 189 ++++++++++++++++++++++++++-------------------
 1 file changed, 108 insertions(+), 81 deletions(-)

---
base-commit: 393d0c54cae31317deaa9043320c5fd9454deabc
change-id: 20250421-flexspipatch-1cf724d4213d

Best regards,

Signature · 1 line
Haibo Chen <[email protected]>