Re: [PATCH 00/72] media: i2c: Reduce cargo-cult

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > The sensor driver typically determines this via the presence (or absence)
> > of regulator supply entries in the Device Tree. If a supply is not defined,
> > it's assumed to be always-on (e.g., provided by the board via fixed rails).
>
> No, this is broken.  The driver should unconditionally request whatever
> supplies the device needs.

Yes, that’s clear from Laurent’s explanation:

"A sensor always needs
 supplies, regardless of whether or not they're always on. Drivers should
 get the supplies with regulator_get() (or possibly the bulk API)"

Thanks, Mark, for the clarification.

Best Regards,
Tarang




[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux for Synopsys ARC Processors]    
  • [Linux on Unisoc (RDA Micro) SoCs]     [Linux Actions SoC]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  •   Powered by Linux