On Wed, May 29, 2024 at 11:49:51AM +0200, Geert Uytterhoeven wrote: > According to the GPIO regulator DT bindings[1], the default GPIO state > is LOW. However, the driver defaults to HIGH. > Before the conversion to descriptors in commit d6cd33ad71029a3f > ("regulator: gpio: Convert to use descriptors"), the default state used > by the driver was rather ill-defined, too: That was 4 years ago... > I have no idea if this has any impact. > I guess most/all DTS files have proper gpios-states properties? That seems optimistic, and a grep in mainline shows some users but not really as many as I'd intuitively expect. > - /* Default to high per specification */ > + /* Default to low per specification */ > if (ret) > - config->gflags[i] = GPIOD_OUT_HIGH; > + config->gflags[i] = GPIOD_OUT_LOW; > else The risk here is that we start glitching the power where previously we didn't. This does make me nervous.
Attachment:
signature.asc
Description: PGP signature