]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: cadence-quadspi: fix unclocked access on unbind
authorJohan Hovold <johan@kernel.org>
Tue, 21 Apr 2026 12:53:51 +0000 (14:53 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 26 Apr 2026 23:26:36 +0000 (08:26 +0900)
commit233db2cb14db8b1935dda52a6affd97276462b82
treedbc3f18004c34ff1487de6a921e217d5c655f61e
parentcba53fe20c18688c17ca668ad0e4ec05e31c70d3
spi: cadence-quadspi: fix unclocked access on unbind

Make sure that the controller is runtime resumed before disabling it
during driver unbind to avoid an unclocked register access.

This issue was flagged by Sashiko when reviewing a controller
deregistration fix.

Fixes: 0578a6dbfe75 ("spi: spi-cadence-quadspi: add runtime pm support")
Cc: stable@vger.kernel.org # 6.7
Cc: Dhruva Gole <d-gole@ti.com>
Link: https://sashiko.dev/#/patchset/20260414134319.978196-1-johan%40kernel.org?part=2
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260421125354.1534871-4-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence-quadspi.c