From: Svyatoslav Ryhel <clamor95@gmail.com>
To: Anatolij Gustschin <agust@denx.de>,
Simon Glass <sjg@chromium.org>, Jonas Karlman <jonas@kwiboo.se>,
Svyatoslav Ryhel <clamor95@gmail.com>
Cc: u-boot@lists.denx.de
Subject: [PATCH v3 0/3] Video: Keep fixed/gpio regulator counter in balance
Date: Tue, 3 Oct 2023 09:25:31 +0300 [thread overview]
Message-ID: <20231003062534.42325-1-clamor95@gmail.com> (raw)
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(-)
--
2.39.2
next reply other threads:[~2023-10-03 6:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-03 6:25 Svyatoslav Ryhel [this message]
2023-10-03 6:25 ` [PATCH v3 1/3] video: pwm_backlight: use regulator_set_enable_if_allowed Svyatoslav Ryhel
2023-10-03 6:25 ` [PATCH v3 2/3] video: simple_panel: " Svyatoslav Ryhel
2023-10-03 6:25 ` [PATCH v3 3/3] video: tegra20: dsi: " Svyatoslav Ryhel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231003062534.42325-1-clamor95@gmail.com \
--to=clamor95@gmail.com \
--cc=agust@denx.de \
--cc=jonas@kwiboo.se \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).