[PATCH 0/2] spi: handle runtime resume failures

Jiale Yao yaojiale02 at 163.com
Mon Oct 19 01:44:41 PDT 2026


The STM32 OSPI remove path and the TI QSPI clock setup helper ignore
pm_runtime_resume_and_get() failures. A failed runtime resume leaves the
controller unavailable, so following register accesses are unsafe and a
later runtime PM put can be unmatched.

Keep OSPI resource teardown on a failed resume while skipping the
controller register write and its matching put. Return the error from the
QSPI clock setup helper and propagate it before either caller touches the
controller registers.

Jiale Yao (2):
  spi: stm32-ospi: handle runtime resume failure in remove
  spi: ti-qspi: handle setup clock runtime resume failure

 drivers/spi/spi-stm32-ospi.c | 12 ++++++++----
 drivers/spi/spi-ti-qspi.c    | 21 ++++++++++++++++-----
 2 files changed, 24 insertions(+), 9 deletions(-)

-- 
2.34.1




More information about the linux-arm-kernel mailing list