lkml.org 
[lkml]   [2014]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2 07/10] regulator: Add driver for Maxim 77802 PMIC regulators
    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.
    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2014-06-17 16:41    [W:3.120 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site