HomeFreeBSD

extres: regulator: Fix regulator_status for already enable regulators

Description

extres: regulator: Fix regulator_status for already enable regulators

If a regulator hasn't been enable by a driver but is enabled in hardware
(most likely enabled by U-Boot), regulator_status will returns that it
is enabled and so any call to regulator_disable will panic as it wasn't
enabled by one of our drivers.

Sponsored by: Diablotin Systems
Differential Revision: https://reviews.freebsd.org/D30293

(cherry picked from commit f52072b06da761c05dcb636dd1a02dea7214174a)

Details

Provenance
manuAuthored on May 16 2021, 2:21 PM
Differential Revision
D30293: extres: regulator: Fix regulator_status for already enable regulators
Parents
rGea9bd18bac51: mmc: dwmmc: Call mmc_fdt_set_power
Branches
Unknown
Tags
Unknown