diff options
author | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2022-08-01 08:39:39 +0300 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2022-08-08 18:32:17 +0300 |
commit | 8447d0e75099eb54eea9306c2d43ecfc956d09ed (patch) | |
tree | 08004000c0c53c2162ab72f712363576fbe3a13d /fs | |
parent | bf24ecc85a6329a8f3c3c5e8fd4834f08348b86f (diff) | |
download | linux-8447d0e75099eb54eea9306c2d43ecfc956d09ed.tar.xz |
remoteproc: qcom_q6v5_pas: Do not fail if regulators are not found
devm_regulator_get_optional() API will return -ENODEV if the regulator was
not found. For the optional supplies CX, PX we should not fail in that case
but rather continue. So let's catch that error and continue silently if
those regulators are not found.
The commit 3f52d118f992 ("remoteproc: qcom_q6v5_pas: Deal silently with
optional px and cx regulators") was supposed to do the same but it missed
the fact that devm_regulator_get_optional() API returns -ENODEV when the
regulator was not found.
Cc: Abel Vesa <abel.vesa@linaro.org>
Fixes: 3f52d118f992 ("remoteproc: qcom_q6v5_pas: Deal silently with optional px and cx regulators")
Reported-by: Steev Klimaszewski <steev@kali.org>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Tested-by: Steev Klimaszewski <steev@kali.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220801053939.12556-1-manivannan.sadhasivam@linaro.org
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions