diff options
author | Bjorn Andersson <[email protected]> | 2019-05-03 17:17:36 -0700 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2019-06-07 13:19:30 -0700 |
commit | f02fba3aa8feeee0a9f9c82c6db2ae9dda7825cd (patch) | |
tree | d95a3bfd6b6f8ac4da57cdbdc27135336a6cdc6f | |
parent | a188339ca5a396acc588e5851ed7e19f66b0ebd9 (diff) |
clk: qcom: gdsc: WARN when failing to toggle
Failing to toggle a GDSC as the driver core is attaching the
power-domain to a device will cause a silent probe deferral. Provide an
explicit warning to the developer, in order to reduce the amount of time
it takes to debug this.
Signed-off-by: Bjorn Andersson <[email protected]>
Reviewed-by: Jeffrey Hugo <[email protected]>
Tested-by: Jeffrey Hugo <[email protected]>
Reviewed-by: Marc Gonzalez <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
-rw-r--r-- | drivers/clk/qcom/gdsc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/clk/qcom/gdsc.c b/drivers/clk/qcom/gdsc.c index dd63aa36b092..6a8a4996dde3 100644 --- a/drivers/clk/qcom/gdsc.c +++ b/drivers/clk/qcom/gdsc.c @@ -149,7 +149,9 @@ static int gdsc_toggle_logic(struct gdsc *sc, enum gdsc_status status) udelay(1); } - return gdsc_poll_status(sc, status); + ret = gdsc_poll_status(sc, status); + WARN(ret, "%s status stuck at 'o%s'", sc->pd.name, status ? "ff" : "n"); + return ret; } static inline int gdsc_deassert_reset(struct gdsc *sc) |