[PATCH v2 0/3] spi: nxp-fspi: fix runtime PM error handling

Jiawen Liu <[email protected]>
Newsgroups dev.linux.lists.imx,org.kernel.vger.linux-kernel,org.kernel.vger.linux-spi
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.