]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: orion: fix clock imbalance on registration failure
authorJohan Hovold <johan@kernel.org>
Tue, 21 Apr 2026 13:02:10 +0000 (15:02 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 22 Apr 2026 12:49:15 +0000 (13:49 +0100)
commit443cde0dc59c5d154156ac9f27a7dadef8ebc0c2
treeb098770cfb72cef309b68b1e041341df14ba41c0
parent97b17dd8266d2e26d9ee3c75a0fa34ecde6944f0
spi: orion: fix clock imbalance on registration failure

Make sure that the controller is not runtime suspended before disabling
clocks on probe failure.

Also restore the autosuspend setting.

Fixes: 5c6786945b4e ("spi: spi-orion: add runtime PM support")
Cc: stable@vger.kernel.org # 3.17
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260421130211.1537628-3-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-orion.c