diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2018-10-01 22:43:46 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-10-02 15:16:00 +0200 |
commit | 28be5f15df2ee6882b0a122693159c96a28203c7 (patch) | |
tree | 1d374f80eaf53455b78529f82c182dca4265cf35 /lib | |
parent | Merge tag 'bd71847-support' into regulator-4.20 (diff) | |
download | linux-28be5f15df2ee6882b0a122693159c96a28203c7.tar.xz linux-28be5f15df2ee6882b0a122693159c96a28203c7.zip |
regulator: fixed: Default enable high on DT regulators
commit efdfeb079cc3
("regulator: fixed: Convert to use GPIO descriptor only")
switched to use gpiod_get() to look up the regulator from the
gpiolib core whether that is device tree or boardfile.
This meant that we activate the code in
a603a2b8d86e ("gpio: of: Add special quirk to parse regulator flags")
which means the descriptors coming from the device tree already
have the right inversion and open drain semantics set up from
the gpiolib core.
As the fixed regulator was inspected again we got the
inverted inversion and things broke.
Fix it by ignoring the config in the device tree for now: the
later patches in the series will push all inversion handling
over to the gpiolib core and set it up properly in the
boardfiles for legacy devices, but I did not finish that
for this kernel cycle.
Fixes: commit efdfeb079cc3 ("regulator: fixed: Convert to use GPIO descriptor only")
Reported-by: Leonard Crestez <leonard.crestez@nxp.com>
Reported-by: Fabio Estevam <festevam@gmail.com>
Reported-by: John Stultz <john.stultz@linaro.org>
Reported-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions