[PATCH v2 07/10] regulator: Add driver for Maxim 77802 PMIC regulators
broonie at kernel.org
Tue Jun 17 07:12:54 PDT 2014
On Tue, Jun 17, 2014 at 12:49:56PM +0200, Javier Martinez Canillas wrote:
> On 06/16/2014 09:25 PM, Mark Brown wrote:
> >> + config.dev = &pdev->dev;
> > Are you sure this shouldn't be the MFD?
> I just looked at regulator_register() and saw that it does rdev->dev.parent =
> dev, so yes this has to be the MFD.
Do the regulators manage to get their supplies?
> So, for now I thought it made sense to set the operating mode to normal on
> probe() but I'll change it to read from the hardware if that is better.
Yes, otherwise if the device is configured otherwise then when we change
the configuration we may break something.
> I guess I should check in the datasheet if a sane default operating mode for
> LDOs is expected when the chip is reseted or if this is left undefined and also
> if the bootloader already set this.
You can't do anything based on the particular bootloader you're using in
your current system, this has to work in other systems.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: Digital signature
More information about the linux-arm-kernel