Skip to content

Video: Keep fixed/gpio regulator counter in balance

Svyatoslav Ryhel u-boot 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v23 patches 0 repliesSuperseded
  3. v13 patches 1 replySuperseded

Changes in v3 from the cover letter

- no changes, re-sending

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3video: pwm_backlight: use regulator_set_enable_if_alloweddrivers/video/pwm_backlight.c+6 -70 replies
2/3video: simple_panel: use regulator_set_enable_if_alloweddrivers/video/simple_panel.c+5 -50 replies
3/3video: tegra20: dsi: use regulator_set_enable_if_alloweddrivers/video/tegra20/tegra-dsi.c+3 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] Video: Keep fixed/gpio regulator counter in balance

The commit 4fcba5d556b4 ("regulator: implement basic reference counter") have made it more important to keep fixed/gpio regulators enable/disable state in balance.

The regulator_set_enable_if_allowed function is more relaxed and will wrap all cases where the regulator is busy, already active, missing or if DM_REGULATOR is not enabled.

These patches are an expansion of similar Jonas Karlman's patches.

---
Changes from v2:
- no changes, re-sending

Changes from v1:
- check return of regulator_set_enable_if_allowed for -ENOSYS to avoid error caused by disabled DM_REGULATOR (Jonas Karlman suggestion)
---

Svyatoslav Ryhel (3):
video: pwm_backlight: use regulator_set_enable_if_allowed
video: simple_panel: use regulator_set_enable_if_allowed
video: tegra20: dsi: use regulator_set_enable_if_allowed

 drivers/video/pwm_backlight.c     | 13 ++++++-------
 drivers/video/simple_panel.c      | 10 +++++-----
 drivers/video/tegra20/tegra-dsi.c |  8 +++-----
 3 files changed, 14 insertions(+), 17 deletions(-)
Signature · 1 line
2.39.2