]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: cadence-quadspi: clean up disable runtime pm quirk
authorJohan Hovold <johan@kernel.org>
Tue, 21 Apr 2026 12:53:53 +0000 (14:53 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 26 Apr 2026 23:26:38 +0000 (08:26 +0900)
commitedbaae583ead2c06aea756b0fafd5fa7a1e89fc1
tree9857a373fc1c8e3f7ffb191630688ef20d6d4ffe
parent5e8bb0cc72f1d52d8ac2a88f4c952e2e98056aed
spi: cadence-quadspi: clean up disable runtime pm quirk

Commit 30dbc1c8d50f ("spi: cadence-qspi: defer runtime support on
socfpga if reset bit is enabled") fixed a warm reset issue on SoCFPGA by
disabling runtime PM on that platform.

Clean up the quirk implementation by never dropping the runtime PM usage
count on probe instead of sprinkling conditionals throughout the driver
which makes the code unnecessarily hard to read and maintain.

Cc: Khairul Anuar Romli <khairul.anuar.romli@altera.com>
Cc: Adrian Ng Ho Yin <adrianhoyin.ng@altera.com>
Cc: Niravkumar L Rabara <nirav.rabara@altera.com>
Cc: Matthew Gerlach <matthew.gerlach@altera.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260421125354.1534871-6-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence-quadspi.c