]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: zynqmp-gqspi: fix clock imbalance on probe failure
authorJohan Hovold <johan+linaro@kernel.org>
Thu, 22 Jun 2023 08:24:35 +0000 (10:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Oct 2023 19:59:04 +0000 (21:59 +0200)
commitb4f7f15568134ed1e468e46f2ab0c07ea798f9f0
treebab823f381c1a72de8edc17d6006fc13526eb696
parente514f897ad66560215f70cd3e343e43ee6dc4ca3
spi: zynqmp-gqspi: fix clock imbalance on probe failure

[ Upstream commit 1527b076ae2cb6a9c590a02725ed39399fcad1cf ]

Make sure that the device is not runtime suspended before explicitly
disabling the clocks on probe failure and on driver unbind to avoid a
clock enable-count imbalance.

Fixes: 9e3a000362ae ("spi: zynqmp: Add pm runtime support")
Cc: stable@vger.kernel.org # 4.19
Cc: Naga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com>
Cc: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/Message-Id:
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-zynqmp-gqspi.c