30 Apr, 2017

6 commits


25 Apr, 2017

9 commits


19 Apr, 2017

1 commit

  • Commit 43530b69d758328d3ffe6ab98fd640463e8e3667 ("regulator: Use
    regmap_read/write(), regmap_update_bits functions directly") intended
    to replace working inline helper functions with standard regmap
    calls. However, it also inverted the set/clear logic of the "CORE ADJ
    Allowed" bit. That patch was clearly never tested, since without that
    bit cleared, the core VDCDC1 voltage output does not react to I2C
    configuration changes.

    This patch fixes the issue by clearing the bit as in the original,
    correct implementation. Note for stable back porting that, due to
    subsequent driver churn, this patch will not apply on every kernel
    version.

    Fixes: 43530b69d758 ("regulator: Use regmap_read/write(), regmap_update_bits functions directly")
    Signed-off-by: Richard Cochran
    Signed-off-by: Mark Brown
    Cc: stable@vger.kernel.org

    Richard Cochran
     

15 Apr, 2017

5 commits


14 Apr, 2017

2 commits


12 Apr, 2017

4 commits


11 Apr, 2017

1 commit


07 Apr, 2017

2 commits


06 Apr, 2017

1 commit

  • Some regulators (some PWM regulators) have the voltage transition
    non-linear i.e. exponentially. On such cases, the settling time
    for voltage transition can not be presented in the voltage-ramp-delay.

    Add new property for non-linear voltage transition and handle this
    in getting the voltage settling time.

    Signed-off-by: Laxman Dewangan
    Signed-off-by: Mark Brown

    Laxman Dewangan
     

04 Apr, 2017

1 commit


30 Mar, 2017

2 commits

  • The device argument passed to of_get_regulator_init_data is used to
    do some devres memory allocation. Currently the driver passes the MFD
    device pointer to this function, this could result in the init_data
    allocation being leaked if the regulator is unbound but the MFD isn't.

    Correct this issue by correctly passing the local platform device.

    Signed-off-by: Charles Keepax
    Signed-off-by: Mark Brown

    Charles Keepax
     
  • The device argument passed to of_get_regulator_init_data is used to
    do some devres memory allocation. Currently the driver passes the MFD
    device pointer to this function, this could result in the init_data
    allocation being leaked if the regulator is unbound but the MFD isn't.

    Correct this issue by correctly passing the local platform device.

    Signed-off-by: Charles Keepax
    Signed-off-by: Mark Brown

    Charles Keepax
     

29 Mar, 2017

2 commits

  • Commit 26988efe11b1 ("regulator: core: Allow to get voltage count and
    list from parent") introduces the propagation of the parent voltage
    count and list for regulators that don't provide this information
    themselves. The goal is to support simple switch regulators, however as
    a side effect normal continuous regulators can leak details of their
    supplies and provide consumers with inconsistent information.

    Limit the propagation of the voltage count and list to switch
    regulators.

    Fixes: 26988efe11b1 ("regulator: core: Allow to get voltage count and
    list from parent")
    Signed-off-by: Matthias Kaehlcke
    Reviewed-by: Javier Martinez Canillas
    Tested-by: Javier Martinez Canillas
    Signed-off-by: Mark Brown

    Matthias Kaehlcke
     
  • Remove the description for the non-existing 'ret' to fix the build warning:
    ./drivers/regulator/core.c:1467: warning:
    Excess function parameter 'ret' description in 'regulator_dev_lookup'.
    The description found for the return value is: @ret: 0 on success, -ENODEV
    if lookup fails permanently, -EPROBE_DEFER if lookup could succeed in the future.

    Signed-off-by: Tamara Diaconita
    Signed-off-by: Mark Brown

    Tamara Diaconita
     

25 Mar, 2017

3 commits


17 Mar, 2017

1 commit