]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: zynqmp-gqspi: Undo runtime PM changes at driver exit time​
authorJinjie Ruan <ruanjinjie@huawei.com>
Fri, 20 Sep 2024 09:11:35 +0000 (17:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:53:03 +0000 (13:53 +0100)
commit75c4ca1467f749016970cb6d2430d7573e9ec2dc
treeb1d4d41013f10936efc0847b579a5d77098978bd
parent3f411ae9912bd68ba4b9fd31c2eb50148cdeed42
spi: zynqmp-gqspi: Undo runtime PM changes at driver exit time​

[ Upstream commit 2219576883e709737f3100aa9ded84976be49bd7 ]

It's important to undo pm_runtime_use_autosuspend() with
pm_runtime_dont_use_autosuspend() at driver exit time.

So, call pm_runtime_dont_use_autosuspend() at driver exit time
to fix it.

Fixes: 9e3a000362ae ("spi: zynqmp: Add pm runtime support")
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://patch.msgid.link/20240920091135.2741574-1-ruanjinjie@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-zynqmp-gqspi.c