]> git.karo-electronics.de Git - linux-beck.git/commit
regulator: qcom_spmi: Keep trying to add regulators if read fails
authorStephen Boyd <stephen.boyd@linaro.org>
Fri, 25 Mar 2016 21:35:09 +0000 (14:35 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 28 Mar 2016 09:41:02 +0000 (10:41 +0100)
commit6ee5c04407f59122774c8da26f3ee8d6db9cec9b
treec9c2de3bb7cdfd9723a82846719c245d6a878da8
parent50314e55a140a0bc898d5f34b591e4e4ecedc75f
regulator: qcom_spmi: Keep trying to add regulators if read fails

On some designs, a handful of the regulators can't be read via
SPMI transactions because they're "secure" and not intended to be
touched by non-secure processors. This driver unconditionally
attempts to read the id registers of all the regulators though,
leading to probe failing and no regulators being registered.
Let's ignore any errors from failing to read the registers and
keep adding other regulators so that this driver can probe on
such devices.

Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/qcom_spmi-regulator.c