1. 20 4月, 2018 1 次提交
  2. 12 2月, 2018 1 次提交
  3. 26 1月, 2018 3 次提交
    • M
      regulator: core: Move of_find_regulator_by_node() to of_regulator.c · 148096af
      Maciej Purski 提交于
      As of_find_regulator_by_node() is an of function it should be moved from
      core.c to of_regulator.c. It provides better separation of device tree
      functions from the core and allows other of_functions in of_regulator.c
      to resolve device_node to regulator_dev. This will be useful for
      implementation of parsing coupled regulators properties.
      
      Declare of_find_regulator_by_node() function in internal.h as well as
      regulator_class and dev_to_rdev(), as they are needed by
      of_find_regulator_by_node().
      Signed-off-by: NMaciej Purski <m.purski@samsung.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      148096af
    • C
      regulator: add PM suspend and resume hooks · f7efad10
      Chunyan Zhang 提交于
      In this patch, consumers are allowed to set suspend voltage, and this
      actually just set the "uV" in constraint::regulator_state, when the
      regulator_suspend_late() was called by PM core through callback when
      the system is entering into suspend, the regulator device would act
      suspend activity then.
      
      And it assumes that if any consumer set suspend voltage, the regulator
      device should be enabled in the suspend state.  And if the suspend
      voltage of a regulator device for all consumers was set zero, the
      regulator device would be off in the suspend state.
      
      This patch also provides a new function hook to regulator devices for
      resuming from suspend states.
      Signed-off-by: NChunyan Zhang <zhang.chunyan@linaro.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      f7efad10
    • C
      regulator: leave one item to record whether regulator is enabled · 72069f99
      Chunyan Zhang 提交于
      The items "disabled" and "enabled" are a little redundant, since only one
      of them would be set to record if the regulator device should keep on
      or be switched to off in suspend states.
      
      So in this patch, the "disabled" was removed, only leave the "enabled":
        - enabled == 1 for regulator-on-in-suspend
        - enabled == 0 for regulator-off-in-suspend
        - enabled == -1 means do nothing when entering suspend mode.
      Signed-off-by: NChunyan Zhang <zhang.chunyan@linaro.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      72069f99
  4. 11 8月, 2017 1 次提交
  5. 19 7月, 2017 1 次提交
  6. 17 5月, 2017 1 次提交
  7. 06 4月, 2017 1 次提交
  8. 22 6月, 2016 1 次提交
  9. 30 3月, 2016 1 次提交
  10. 27 3月, 2016 1 次提交
  11. 22 3月, 2016 1 次提交
  12. 12 3月, 2016 1 次提交
  13. 02 3月, 2016 1 次提交
  14. 17 9月, 2015 1 次提交
  15. 25 7月, 2015 1 次提交
  16. 12 6月, 2015 4 次提交
  17. 13 5月, 2015 1 次提交
  18. 28 4月, 2015 1 次提交
  19. 09 1月, 2015 1 次提交
  20. 27 11月, 2014 3 次提交
  21. 03 11月, 2014 1 次提交
  22. 01 11月, 2014 1 次提交
  23. 29 10月, 2014 1 次提交
  24. 23 10月, 2014 1 次提交
  25. 20 10月, 2014 1 次提交
  26. 10 9月, 2014 1 次提交
    • M
      regulator: of: Provide simplified DT parsing method · a0c7b164
      Mark Brown 提交于
      Currently regulator drivers which support DT all repeat very similar code
      to supply a list of known regulator identifiers to be matched with DT,
      convert that to platform data which is then matched up with the regulators
      as they are registered. This is both fiddly to get right and for devices
      which can use the standard helpers to provide their operations is the main
      source of code in the driver.
      
      Since this code is essentially identical for most drivers we can factor it
      out into the core, moving the identifiers in the match table into the
      regulator descriptors and also allowing drivers to pass in the name of the
      subnode to search. When a driver provides an of_match string for the
      regulator the core will attempt to use that to obtain init_data, allowing
      the driver to remove all explicit code for DT parsing and simply provide
      data instead.
      
      The current code leaks the phandles for the child nodes, this will be
      addressed incrementally and makes no practical difference for FDT anyway
      as the DT data structures are never freed.
      Signed-off-by: NMark Brown <broonie@linaro.org>
      a0c7b164
  27. 01 6月, 2014 1 次提交
  28. 19 4月, 2014 1 次提交
  29. 15 4月, 2014 2 次提交
  30. 19 9月, 2013 1 次提交
  31. 15 7月, 2013 1 次提交
  32. 20 6月, 2013 1 次提交