1. 30 7月, 2014 2 次提交
  2. 09 7月, 2014 1 次提交
  3. 07 7月, 2014 1 次提交
  4. 05 7月, 2014 1 次提交
  5. 24 6月, 2014 3 次提交
  6. 22 6月, 2014 1 次提交
  7. 21 6月, 2014 1 次提交
    • N
      regulator: palmas: Fix SMPS enable/disable/is_enabled · 318dbb02
      Nishanth Menon 提交于
      We use regmap regulator ops to enable/disable and check if regulator
      is enabled for various SMPS. However, these depend on valid
      enable_reg, enable_mask and enable_value in regulator descriptor.
      
      Currently we do not populate these for SMPS other than SMPS10, this
      results in spurious results as regmap assumes that the values are
      valid and ends up reading register 0x0 RTC:SECONDS_REG on Palmas
      variants that do have RTC! To fix this, we update proper parameters
      for the descriptor fields.
      
      Further, we want to ensure the behavior consistent with logic
      prior to commit dbabd624, where, once you do a set_mode,
      enable/disable ensure the logic remains consistent and configures
      Palmas to the configuration that we set with set_mode (since the
      configuration register is common). To do this, we can rely on the
      regulator core's regulator_register behavior where the regulator
      descriptor pointer provided by the regulator driver is stored. (no
      reallocation and copy is done). This lets us update the enable_value
      post registration, to remain consistent with the mode we configure as
      part of set_mode.
      
      Fixes: dbabd624 ("regulator: palmas: Reemove open coded functions with helper functions")
      Reported-by: NAlexandre Courbot <acourbot@nvidia.com>
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Tested-by: NAlexandre Courbot <acourbot@nvidia.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      318dbb02
  8. 16 6月, 2014 1 次提交
  9. 05 6月, 2014 2 次提交
    • N
      regulator: palmas: Fix SMPS list for 0V · 6b7f2d82
      Nishanth Menon 提交于
      get_voltage_sel reads from SMPS register - if the read selector value
      is 0, the SMPS is actually disabled - So, this is in addition to the
      ctrl_register that may also be used to enable/disable the SMPS.
      
      The original logic(prior to commit dbabd624) used to be:
      static int palmas_map_voltage_smps(struct regulator_dev *rdev,
                     int min_uV, int max_uV)
      <snip>
             if (min_uV == 0)
                     return 0;
      
      To handle this scenario, with the transition to regulator_list
      implementation, we seem to have missed the data necessary to mark as
      one of the valid entries as "0" 'disabled regulator' which results in
      0 volts - So, stick with pre-existing logic.
      
      Without this added to the list, palmas regulator driver,
      on probe, attempts to setup constraints and in the case of
      OMAP5uEVM, SMPS9 (which is mapped for 2v1 audio supply) fails in
      regulator_list_voltage_linear_range mapping of '0', and as a fall back
      of constraints not being applied, the entire regulator list is not
      enumerated due to assumption that something system wide has gone bad
      on with the PMIC.
      
      Fixes: dbabd624 ("regulator: palmas: Reemove open coded functions with helper functions")
      Reported-by: NOlof Johansson <olof@lixom.net>
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      6b7f2d82
    • N
      regulator: core: print error value when constraints are not applied · 69d58839
      Nishanth Menon 提交于
      With commit 064d5cd1
      (regulator: core: Fix the init of DT defined fixed regulators)
      We ensure that regulator must be capable of providing it's current
      voltage when constraints are used, however adding the return value in
      the print is a little more informative to explain the nature of the
      failure involved.
      
      So, instead of providing message such as:
      smps9: failed to get the current voltage
      
      having error value added to the message such as:
      smps9: failed to get the current voltage(-22)
      
      is a little more informative for debugging the error.
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      69d58839
  10. 03 6月, 2014 1 次提交
    • T
      regulator: as3722: Make 0 a valid selector · 2050afde
      Thierry Reding 提交于
      As of commit 064d5cd1 (regulator: core: Fix the init of DT defined
      fixed regulators) the regulator core tries to query the current voltage
      of a regulator when applying constraints. This exposes a bug in the
      AS3722 regulator driver which fails to read the voltage of disabled
      regulators. The reason is that the hardware is programmed to a selector
      of 0, but none of the voltage tables include 0 as a valid selector. The
      datasheets indicate that 0 is a valid selector when the regulators are
      powered off.
      
      To fix this, add a range including selector 0 to the voltage tables.
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      2050afde
  11. 02 6月, 2014 5 次提交
  12. 01 6月, 2014 2 次提交
  13. 29 5月, 2014 1 次提交
  14. 28 5月, 2014 1 次提交
    • A
      regulator: arizona-ldo1: add missing #include · 7b22b9a5
      Arnd Bergmann 提交于
      commit 2cce4be9 "regulator: arizona-ldo1: Add processing of init_data
      from device tree" added a call to of_get_child_by_name() but
      did not add an #include to the header file declaring that function.
      
      I got a build error when doing randconfig testing on this, which
      is fixed by this patch to include of.h.
      
      drivers/regulator/arizona-ldo1.c:192:2: error: implicit declaration of function 'of_get_child_by_name' [-Werror=implicit-function-declaration]
      drivers/regulator/arizona-ldo1.c:193:2: error: implicit declaration of function 'of_parse_phandle' [-Werror=implicit-function-declaration]
      drivers/regulator/arizona-ldo1.c:213:2: error: implicit declaration of function 'of_node_put' [-Werror=implicit-function-declaration]
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      7b22b9a5
  15. 27 5月, 2014 5 次提交
  16. 26 5月, 2014 8 次提交
  17. 24 5月, 2014 1 次提交
  18. 22 5月, 2014 1 次提交
  19. 21 5月, 2014 1 次提交
  20. 20 5月, 2014 1 次提交