1. 06 10月, 2022 1 次提交
  2. 02 10月, 2022 1 次提交
  3. 17 7月, 2022 2 次提交
  4. 10 6月, 2022 2 次提交
  5. 15 3月, 2022 1 次提交
  6. 05 3月, 2022 2 次提交
  7. 28 2月, 2022 2 次提交
  8. 12 2月, 2022 3 次提交
  9. 26 1月, 2022 1 次提交
  10. 04 1月, 2022 1 次提交
    • L
      power: supply_core: Pass pointer to battery info · 25fd3303
      Linus Walleij 提交于
      The function to retrieve battery info (from the device tree) assumes
      we have a static info struct that gets populated by calling into
      power_supply_get_battery_info().
      
      This is awkward since I want to support tables of static battery
      info by just assigning a pointer to all info based on e.g. a
      compatible value in the device tree.
      
      We also have a mixture of static and dynamically allocated
      variables here.
      
      Bite the bullet and let power_supply_get_battery_info() allocate
      also the memory used for the very top level
      struct power_supply_battery_info container. Pass pointers
      around and lifecycle this with the psy device just like the
      stuff we allocate inside it.
      
      Change all current users over.
      
      As part of the change, initializers need to be added to some
      previously uninitialized fields in struct
      power_supply_battery_info.
      Reviewed-By: NMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NSebastian Reichel <sebastian.reichel@collabora.com>
      25fd3303
  11. 23 11月, 2021 7 次提交
  12. 13 8月, 2021 1 次提交
  13. 16 7月, 2021 3 次提交
  14. 14 7月, 2021 1 次提交
  15. 04 6月, 2021 2 次提交
    • L
      power: supply: ab8500: Call battery population once · 7e2bb83c
      Linus Walleij 提交于
      The code was calling ab8500_bm_of_probe() in four different
      spots effectively overwriting the same configuration three
      times. This was done because probe order was uncertain.
      
      Since we now used componentized probe, call it only once
      while probing the main charging component.
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NSebastian Reichel <sebastian.reichel@collabora.com>
      7e2bb83c
    • L
      power: supply: ab8500: Move to componentized binding · 1c1f13a0
      Linus Walleij 提交于
      The driver has problems with the different components of
      the charging code racing with each other to probe().
      
      This results in all four subdrivers populating battery
      information to ascertain that it is populated for their
      own needs for example.
      
      Fix this by using component probing and thus expressing
      to the kernel that these are dependent components.
      The probes can happen in any order and will only acquire
      resources such as state container, regulators and
      interrupts and initialize the data structures, but no
      execution happens until the .bind() callback is called.
      
      The charging driver is the main component and binds
      first, then bind in order the three subcomponents:
      ab8500-fg, ab8500-btemp and ab8500-chargalg.
      
      Do some housekeeping while we are moving the code around.
      Like use devm_* for IRQs so as to cut down on some
      boilerplate.
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NSebastian Reichel <sebastian.reichel@collabora.com>
      1c1f13a0
  16. 22 3月, 2021 3 次提交
  17. 13 12月, 2020 1 次提交
  18. 24 8月, 2020 1 次提交
  19. 20 12月, 2019 1 次提交
  20. 20 10月, 2019 1 次提交
  21. 31 5月, 2019 1 次提交
  22. 26 4月, 2018 1 次提交
  23. 16 8月, 2016 1 次提交
新手
引导
客服 返回
顶部