]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: qcom: reset: Use the correct type of sleep/delay based on length
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Fri, 28 Jul 2023 07:57:38 +0000 (09:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:48:21 +0000 (09:48 +0200)
commitf9917b02df08ad14607fd42e1400c24ad611b95c
treefbe9fe0e981eeccf80099baafb40fe969ce18039
parent1e54beadc5501ca0f45ceb6b96c255b12e5e0436
clk: qcom: reset: Use the correct type of sleep/delay based on length

[ Upstream commit 181b66ee7cdd824797fc99b53bec29cf5630a04f ]

Use the fsleep() helper that (based on the length of the delay, see: [1])
chooses the correct sleep/delay functions.

[1] https://www.kernel.org/doc/Documentation/timers/timers-howto.txt

Fixes: 2cb8a39b6781 ("clk: qcom: reset: Allow specifying custom reset delay")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230726-topic-qcom_reset-v3-1-5958facd5db2@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/qcom/reset.c