mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
clk: qcom: gdsc-regulator: use cfg-gdscr for hw-ctrl-addr property
If cfg-gdscr property is defined then use cfg-gdscr register POWER_UP/DOWN_COMPLETE status for hw-ctrl gdscr on/off polling. Change-Id: I5a217048cc3ab8106f5a7049c7bed153163a2de1 Signed-off-by: Vivek Aknurwar <quic_viveka@quicinc.com>
This commit is contained in:
parent
3866b02cf8
commit
26dd7a2048
|
|
@ -121,7 +121,7 @@ static int poll_gdsc_status(struct gdsc *sc, enum gdscr_status status)
|
|||
int count = sc->gds_timeout;
|
||||
u32 val, reg_offset;
|
||||
|
||||
if (sc->hw_ctrl)
|
||||
if (sc->hw_ctrl && !sc->cfg_gdscr)
|
||||
regmap = sc->hw_ctrl;
|
||||
else
|
||||
regmap = sc->regmap;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user