1. 25 2月, 2014 2 次提交
    • M
      regulator: core: Replace direct ops->disable usage · 66fda75f
      Markus Pargmann 提交于
      There are many places where ops->disable is called directly. Instead we
      should use _regulator_do_disable() which also handles gpio regulators.
      
      To be able to use the wrapper function from _regulator_force_disable(),
      I moved the _notifier_call_chain() call from _regulator_do_disable() to
      _regulator_disable(). This way, _regulator_force_disable() can use
      different flags for _notifier_call_chain() without calling it twice.
      
      Cc: <stable@vger.kernel.org> # 3.10+
      Signed-off-by: NMarkus Pargmann <mpa@pengutronix.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      66fda75f
    • M
      regulator: core: Replace direct ops->enable usage · 30c21971
      Markus Pargmann 提交于
      There are some direct ops->enable in the regulator core driver. This is
      a potential issue as the function _regulator_do_enable() handles gpio
      regulators and the normal ops->enable calls. These gpio regulators are
      simply ignored when ops->enable is called directly.
      
      One possible bug is that boot-on and always-on gpio regulators are not
      enabled on registration.
      
      This patch replaces all ops->enable calls by _regulator_do_enable.
      
      [Handle missing enable operations -- broonie]
      
      Cc: <stable@vger.kernel.org> # 3.10+
      Signed-off-by: NMarkus Pargmann <mpa@pengutronix.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      
      regulator: Handle invalid enable operation for always/boot on regulators
      Signed-off-by: NMark Brown <broonie@linaro.org>
      30c21971
  2. 21 2月, 2014 1 次提交
  3. 28 1月, 2014 1 次提交
    • M
      regulator: core: Correct default return value for full constraints · 317b5684
      Mark Brown 提交于
      Once we have full constraints then all supply mappings should be known to
      the regulator API. This means that we should treat failed lookups as fatal
      rather than deferring in the hope of further registrations but this was
      broken by commit 9b92da1f "regulator: core: Fix default return
      value for _get()" which was targeted at DT systems but unintentionally
      broke non-DT systems by changing the default return value.
      
      Fix this by explicitly returning -EPROBE_DEFER from the DT lookup if we
      find a property but no corresponding regulator and by having the non-DT
      case default to -ENODEV when we have full constraints.
      
      Fixes: 9b92da1f "regulator: core: Fix default return value for _get()"
      Signed-off-by: NMark Brown <broonie@linaro.org>
      Tested-by: NGuenter Roeck <linux@roeck-us.net>
      Cc: stable@vger.kernel.org
      317b5684
  4. 09 1月, 2014 1 次提交
  5. 18 12月, 2013 1 次提交
  6. 28 11月, 2013 2 次提交
  7. 13 11月, 2013 1 次提交
  8. 18 10月, 2013 1 次提交
  9. 04 10月, 2013 1 次提交
  10. 30 9月, 2013 1 次提交
  11. 24 9月, 2013 1 次提交
  12. 23 9月, 2013 1 次提交
  13. 21 9月, 2013 1 次提交
  14. 20 9月, 2013 1 次提交
  15. 19 9月, 2013 1 次提交
  16. 17 9月, 2013 6 次提交
  17. 11 9月, 2013 1 次提交
  18. 30 8月, 2013 1 次提交
  19. 19 8月, 2013 1 次提交
  20. 09 8月, 2013 1 次提交
  21. 07 8月, 2013 1 次提交
  22. 31 7月, 2013 1 次提交
    • M
      regulator: core: Provide hints to the core about optional supplies · de1dd9fd
      Mark Brown 提交于
      While the majority of supplies on devices are mandatory and can't be
      physically omitted for electrical reasons some devices do have optional
      supplies and need to know if they are missing, MMC being the most common
      of these.
      
      Currently the core accurately reports all errors when regulators are
      requested since it does not know if the supply is one that must be provided
      even if by a regulator software does not know about or if it is one that
      may genuinely be disconnected. In order to allow this behaviour to be
      changed and stub regulators to be provided in the former case add a new
      regulator request function regulator_get_optional() which provides a hint
      to the core that the regulator may genuinely not be connected.
      
      Currently the implementation is identical to the current behaviour, future
      patches will add support in the core for returning stub regulators in the
      case where normal regulator_get() fails and the board has requested it.
      Signed-off-by: NMark Brown <broonie@linaro.org>
      Acked-by: NChris Ball <cjb@laptop.org>
      de1dd9fd
  23. 25 7月, 2013 1 次提交
  24. 18 7月, 2013 3 次提交
  25. 15 7月, 2013 4 次提交
  26. 07 6月, 2013 1 次提交
  27. 21 5月, 2013 1 次提交
  28. 02 5月, 2013 1 次提交