]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: orion: fix runtime pm leak on unbind
authorJohan Hovold <johan@kernel.org>
Tue, 21 Apr 2026 13:02:09 +0000 (15:02 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 22 Apr 2026 12:49:14 +0000 (13:49 +0100)
commit97b17dd8266d2e26d9ee3c75a0fa34ecde6944f0
tree880363c8b941b9dbb98ff761a48dbd36e3fa0204
parent922f8c28811f266fe5fc52a6d2852871e40ce098
spi: orion: fix runtime pm leak on unbind

Make sure to balance the runtime PM usage count on driver unbind so that
the controller can be suspended when a driver is rebound.

Also restore the autosuspend setting.

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

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>
Link: https://sashiko.dev/#/patchset/20260414134319.978196-1-johan%40kernel.org?part=6
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260421130211.1537628-2-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-orion.c