[PATCH v2 0/3] spi: nxp-fspi: fix runtime PM error handling
From: Jiawen Liu
Date: Tue Jul 28 2026 - 04:10:44 EST
Hi,
This series reworks the previous probe-failure fix for nxp-fspi to use
the newer runtime PM helpers, following the pattern used by spi-nxp-xspi.
Patch 1 converts probe to devm_pm_runtime_enable() and uses
PM_RUNTIME_ACQUIRE_AUTOSUSPEND() for the initial register setup window.
Patch 2 propagates nxp_fspi_default_setup() failures from probe and
runtime resume.
Patch 3 checks the runtime PM get in nxp_fspi_cleanup() before touching
controller registers.
Changes in v2:
- Use devm_pm_runtime_enable() and PM_RUNTIME_ACQUIRE_AUTOSUSPEND()
instead of hand-written probe error cleanup.
- Include the additional default setup and cleanup issues raised during
review.
- Split the fixes into three patches.
Jiawen Liu (3):
spi: nxp-fspi: use devm runtime PM enablement
spi: nxp-fspi: propagate default setup failures
spi: nxp-fspi: check runtime PM get in cleanup
drivers/spi/spi-nxp-fspi.c | 38 ++++++++++++++++++++++++--------------
1 file changed, 24 insertions(+), 14 deletions(-)
--
2.34.1