20 Jan, 2017

1 commit

  • commit 85b037442e3f0e84296ab1010fd6b057eee18496 upstream.

    The handling of bypass_val_on that was added in
    regulator_get_bypass_regmap is done unconditionally however
    several drivers don't define a value for bypass_val_on. This
    results in those drivers reporting bypass being enabled when
    it is not. In regulator_set_bypass_regmap we use bypass_mask
    if bypass_val_on is zero. This patch adds similar handling in
    regulator_get_bypass_regmap.

    Fixes: commit dd1a571daee7 ("regulator: helpers: Ensure bypass register field matches ON value")
    Signed-off-by: Charles Keepax
    Signed-off-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Charles Keepax
     

22 Apr, 2016

1 commit

  • When checking bypass state for a regulator, we check to see if any bits
    in the bypass mask are set. For most cases this is fine because there is
    typically, only a single bit used to determine if the regulator is in
    bypass. However, for some regulators, such as LDO6 on AS3722, the bypass
    state is indicate by a value rather than a single bit. Therefore, when
    checking the bypass state, check that the bypass field matches the ON
    value.

    Signed-off-by: Jon Hunter
    Signed-off-by: Mark Brown

    Jon Hunter
     

02 Mar, 2016

1 commit


19 Apr, 2015

1 commit


06 Mar, 2014

1 commit

  • This patch extends the regulator helpers to account for device that use
    multiple bits for control when using regmap enable/disable/bypass ops.

    The actual regulator helpers wrongly assume that the regulator control
    is always performed using single bits, using in the regulator_desc
    struct only two parameters *_reg and *_mask defining register and mask
    for control.

    This patch extends this struct and introduces the helpers to take into
    account devices where control is performed using multiple bits and
    specific multi-bit values are used for enabling/disabling/bypassing the
    regulator.

    Signed-off-by: Carlo Caione
    Signed-off-by: Mark Brown

    Carlo Caione
     

11 Oct, 2013

1 commit


09 Aug, 2013

1 commit


07 Aug, 2013

1 commit