]> git.baikalelectronics.ru Git - kernel.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:42:46 +0000 (09:42 +0200)
commita1801d14a89110f0f2341afcbc4c726c703afbb3
tree898c7363a1b02d527db13748b54998117fa65be7
parenta4ff4b54f38825a9cdbdd1d70d2341af99ff67e6
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