]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: axiado: fix runtime pm imbalance on probe failure
authorJohan Hovold <johan@kernel.org>
Tue, 21 Apr 2026 14:39:23 +0000 (16:39 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 22 Apr 2026 14:05:51 +0000 (15:05 +0100)
commitcde1a784e4d55068d8dd7ee9bf4794898a2ac410
tree099be2b97bb37acb2f4ff6e92dafc834642ce13a
parent922f8c28811f266fe5fc52a6d2852871e40ce098
spi: axiado: fix runtime pm imbalance on probe failure

Make sure that the controller is active before disabling clocks on late
probe failure and on driver unbind to avoid a clock disable imbalance.

Also make sure that the usage count is balanced on probe failure (e.g.
probe deferral) so that the controller can be suspended when a driver is
later bound.

Note that the runtime PM state can only be set when runtime PM is
disabled.

Fixes: e75a6b00ad79 ("spi: axiado: Add driver for Axiado SPI DB controller")
Cc: stable@vger.kernel.org # 7.0
Cc: Vladimir Moravcevic <vmoravcevic@axiado.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260421143925.1551781-2-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-axiado.c