03 Jul, 2017

4 commits


30 Jun, 2017

1 commit

  • Now the debugfs file supply_map has a size limit PAGE_SIZE and the user
    can not see the whole content of regulator_map_list when it is larger
    than this limit.

    This patch uses seq_file instead to make sure supply_map shows the full
    information of regulator_map_list.

    Signed-off-by: Haishan Zhou
    Signed-off-by: Mark Brown

    Haishan Zhou
     

29 Jun, 2017

1 commit


20 Jun, 2017

1 commit

  • The latest documentation reveals that initial voltage range that is
    supported is starting from 0.6V for all the PMICs belonging to lp87565
    family. Fix the same.

    Signed-off-by: Keerthy
    Fixes: f0168a9bf ("regulator: lp87565: Add support for lp87565 PMIC regulators")
    Signed-off-by: Mark Brown

    Keerthy
     

15 Jun, 2017

1 commit


14 Jun, 2017

2 commits

  • Check TPS65910_NUM_REGS at build time instead of silently registering
    not all regulators at runtime.

    Signed-off-by: Michał Mirosław
    Signed-off-by: Mark Brown

    Michał Mirosław
     
  • Currently, when looking up a regulator supply, the regulator name
    takes priority over the consumer mappings. As there are a lot of
    regulator names that are in fairly common use (VDD, MICVDD, etc.) this
    can easily lead to obtaining the wrong supply, when a system contains
    two regulators that share a name.

    The explicit consumer mappings contain much less ambiguity as they
    specify both a name and a consumer device. As such prioritise those if
    one exists and only fall back to the regulator name if there are no
    matching explicit mappings.

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

    Charles Keepax
     

08 Jun, 2017

4 commits

  • Fix the GPL header to reflect GPL v2

    Signed-off-by: Keerthy
    Signed-off-by: Mark Brown

    Keerthy
     
  • The hi6421-regulator driver consumes a similarly named platform device.
    Adding that to the module device table, allows modprobe to locate this
    driver once the device is created.

    Signed-off-by: Guodong Xu
    Signed-off-by: Mark Brown

    Guodong Xu
     
  • add the driver for hi6421v530 voltage regulator

    Signed-off-by: Wang Xiaoyin
    Signed-off-by: Guodong Xu
    Signed-off-by: Mark Brown

    Wang Xiaoyin
     
  • Regulator support for the DA9061 is added into the DA9062 regulator driver.

    The regulators for DA9061 differ from those of DA9062.
    A new DA9061 enumeration list for the LDOs and Bucks supported by this
    device is added. Regulator information added: the old regulator
    information for DA9062 is renamed from local_regulator_info[] to
    local_da9062_regulator_info[] and a new array is added to support
    local_da9061_regulator_info[].

    The probe() function switches on the da9062_compatible_types enumeration
    and configures the correct da9062_regulator_info array and number of
    regulator entries.

    Kconfig is updated to reflect support for DA9061 and DA9062 regulators.

    Signed-off-by: Steve Twiss
    Signed-off-by: Mark Brown

    Steve Twiss
     

07 Jun, 2017

1 commit


26 May, 2017

1 commit


25 May, 2017

1 commit

  • The regulators set consists of 4 BUCKs. The output
    voltages are configurable and are meant to supply power to the
    main processor and other components. The ramp delay is configurable
    for all BUCKs. The BUCKs can be configured in single phase or
    multiphase modes.

    Signed-off-by: Keerthy
    Signed-off-by: Mark Brown

    Keerthy
     

20 May, 2017

2 commits


17 May, 2017

1 commit


14 May, 2017

2 commits

  • Drop static on a local variable, when the variable is initialized before
    any use, on every possible execution path through the function.

    The semantic patch that fixes this problem is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @bad exists@
    position p;
    identifier x;
    type T;
    @@

    static T x@p;
    ...
    x =

    @@
    identifier x;
    expression e;
    type T;
    position p != bad.p;
    @@

    -static
    T x@p;
    ... when != x
    when strict
    ?x = e;
    //

    There is no reduction in code size in this case, but the change does reduce
    the size of the bss segment, containing uninitialized static data.

    before:
    text data bss dec hex filename
    12882 3480 8 16370 3ff2 drivers/regulator/palmas-regulator.o

    after:
    text data bss dec hex filename
    12882 3480 0 16362 3fea drivers/regulator/palmas-regulator.o

    Signed-off-by: Julia Lawall
    Signed-off-by: Mark Brown

    Julia Lawall
     
  • When min charger-CV is = 4.0V,
    we can use 4.00V as CV (register value = 0x1).`

    The original code had a typo that wrote ">=" (max_uV >= 4000000),
    which should've been "
    Signed-off-by: MyungJoo Ham
    Reviewed-by: Bartlomiej Zolnierkiewicz
    Reviewed-by: Chanwoo Choi
    Signed-off-by: Mark Brown

    MyungJoo Ham
     

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

2 commits