lkml.org 
[lkml]   [2020]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 28/33] regulator: hi6421v600-regulator: initialize ramp_delay
    Date
    Without that, the regulator's core complains with:

    ldo17: ramp_delay not set

    For now, use the enable time, as we don't have any datasheets from
    this device.

    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    ---
    drivers/regulator/hi6421v600-regulator.c | 3 +++
    1 file changed, 3 insertions(+)

    diff --git a/drivers/regulator/hi6421v600-regulator.c b/drivers/regulator/hi6421v600-regulator.c
    index 5ddaf7f8cacc..21467fce9980 100644
    --- a/drivers/regulator/hi6421v600-regulator.c
    +++ b/drivers/regulator/hi6421v600-regulator.c
    @@ -267,6 +267,9 @@ static int hi6421_spmi_dt_parse(struct platform_device *pdev,
    return ret;
    }

    + /* FIXME: are there a better value for this? */
    + rdesc->ramp_delay = rdesc->enable_time;
    +
    /* parse .eco_uA */
    ret = of_property_read_u32(np, "eco-microamp",
    &sreg->eco_uA);
    --
    2.26.2
    \
     
     \ /
      Last update: 2020-08-11 17:43    [W:4.232 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site