diff options
author | Rajendra Nayak <rnayak@codeaurora.org> | 2017-01-23 07:26:21 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-01-27 03:00:38 +0300 |
commit | 843be1e7fb30f6309aa9389344b16dca57e6d4e2 (patch) | |
tree | 95866c166df695bdc17099ce0dc9377fc3c31b5e /drivers/clk/qcom/gdsc.h | |
parent | 340a84ce1eddd6671ce0c57d890fd90f6ae27fa2 (diff) | |
download | linux-843be1e7fb30f6309aa9389344b16dca57e6d4e2.tar.xz |
clk: qcom: gdsc: Fix handling of hw control enable/disable
Once a gdsc is brought in and out of HW control, there is a
power down and up cycle which can take upto 1us. Polling on
the gdsc status immediately after the hw control enable/disable
can mislead software/firmware to belive the gdsc is already either on
or off, while its yet to complete the power cycle.
To avoid this add a 1us delay post a enable/disable of HW control
mode.
Also after the HW control mode is disabled, poll on the status to
check gdsc status reflects its 'on' before force disabling it
in software.
Reported-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Reviewed-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Tested-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Fixes: 904bb4f5c7de ("clk: qcom: gdsc: Add support for gdscs with HW control")
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/qcom/gdsc.h')
0 files changed, 0 insertions, 0 deletions