Johan Hovold 1031f68108 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: <20230622082435.7873-1-johan+linaro@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-10-10 22:00:34 +02:00
..
2023-03-10 09:33:18 +01:00
2022-11-04 12:25:03 +00:00
2022-01-04 14:59:40 +00:00
2022-08-02 10:55:04 -07:00
2021-12-23 13:38:38 +00:00
2022-10-04 19:36:53 -07:00
2021-08-26 12:09:38 +01:00
2022-03-15 12:03:58 +00:00