Skip to content
Commit 9d04d8bc authored by Sudeep Holla's avatar Sudeep Holla Committed by Mark Brown
Browse files

spi: qup: skip clk_disable_unprepare if the device is already runtime suspended



If the spi device is already runtime suspended, if spi_qup_suspend is
executed during suspend-to-idle or suspend-to-ram it will result in the
a splat from unpreparing a non-prepared clock.

This patch fixes the issue by executing clk_disable_unprepare conditionally
in spi_qup_suspend.

[Reworded commit message to remove irrelevant backtrace -- broonie]
Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
Tested-by: default avatarAndy Gross <andy.gross@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 29b4817d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment