1. 01 Dec, 2022 1 commit
    • Rui Zhang's avatar
      regulator: core: fix use_count leakage when handling boot-on · 0591b14c
      Rui Zhang authored
      I found a use_count leakage towards supply regulator of rdev with
      boot-on option.
      
      ┌───────────────────┐           ┌───────────────────┐
      │  regulator_dev A  │           │  regulator_dev B  │
      │     (boot-on)     │           │     (boot-on)     │
      │    use_count=0    │──supply──│    use_count=1    │
      │                   │           │                   │
      └───────────────────┘           └───────────────────┘
      
      In case of rdev(A) configured with `regulator-boot-on', the use_count
      of supplying regulator(B) will increment inside
      regulator_enable(rdev->supply).
      
      Thus, B will acts like always-on, and further balanced
      regulator_enable/disable cannot actually disable it anymore.
      
      However, B was also configured with `regulator-boot-on', we wish it
      could be disabled afterwards.
      Signed-off-by: default avatarRui Zhang <zr.zhang@vivo.com>
      Link: https://lore.kernel.org/r/20221201033806.2567812-1-zr.zhang@vivo.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      0591b14c
  2. 28 Nov, 2022 2 commits
  3. 25 Nov, 2022 1 commit
  4. 24 Nov, 2022 7 commits
  5. 23 Nov, 2022 15 commits
  6. 22 Nov, 2022 13 commits
  7. 18 Nov, 2022 1 commit
    • Mark Brown's avatar
      regulator: Add of_regulator_bulk_get_all() · db6f6ba7
      Mark Brown authored
      Merge series from Corentin Labbe <clabbe@baylibre.com>:
      
      This adds a new regulator_bulk_get_all() which grab all supplies
      properties in a DT node, for use in implementing generic handling
      for things like MDIO PHYs where the physical standardisation of
      the bus does not extend to power supplies.
      db6f6ba7