]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: starfive: Use pm_runtime_resume_and_get to fix pm_runtime_get_sync() usage
authorYuntao Liu <liuyuntao12@huawei.com>
Thu, 15 Aug 2024 09:38:53 +0000 (09:38 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:33:09 +0000 (16:33 +0200)
commit650bde16cc55658ae6224bb74ed6c48fc243f536
treeb25297e0f20c821aacadee467f5bd8257e399a5b
parente8d6e92abc9d2bd9f9da51ae740e9b70f92d80e2
clk: starfive: Use pm_runtime_resume_and_get to fix pm_runtime_get_sync() usage

[ Upstream commit 55c312c1b2be6d43e39c280ad6ab4b711e545b89 ]

We need to call pm_runtime_put_noidle() when pm_runtime_get_sync()
fails, so use pm_runtime_resume_and_get() instead. this function
will handle this.

Fixes: dae5448a327ed ("clk: starfive: Add StarFive JH7110 Video-Output clock driver")
Signed-off-by: Yuntao Liu <liuyuntao12@huawei.com>
Link: https://lore.kernel.org/r/20240815093853.757487-1-liuyuntao12@huawei.com
Reviewed-by: Xingyu Wu <xingyu.wu@starfivetech.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/starfive/clk-starfive-jh7110-vout.c