linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
To: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>,
	Matti Vaittinen <mazziesaccount@gmail.com>
Cc: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>, Lee Jones <lee.jones@linaro.org>,
	linux-power@fi.rohmeurope.com, linux-kernel@vger.kernel.org
Subject: [PATCH 0/5] Few miscellaneous regulator improvements
Date: Thu, 18 Nov 2021 13:47:59 +0200	[thread overview]
Message-ID: <cover.1637233864.git.matti.vaittinen@fi.rohmeurope.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2212 bytes --]

Minor regulator improvemnts / fixes.

This is a collection of minor improvemnts done while developing drivers
for yet another ROHM PMIC. Please note that the new generic function
added in Patch 2 does currently have only one in-tree driver using it.
(call added in patch 3). I intended to post this with the set of patches
bringing support to a new PMIC - but it appears this new PMIC requires
one more HW-iteration - meaning it will be delayed probably by months.
It'd be easier for me to add this upstream now in order to avoid
rebasing/conflicts with other changes introduced meanwhile. Please let
me know if you don't think that's Ok.

Patch 1:
IRQ-helpers do not really need to map IRQ to specific notification in
cases when the sole purpose of an IRQ is to notify this specific error.
Allow omitting the IRQ mapping callback.

Patch 2:
The new PMIC I am writing drivers for does once again allow (base) voltage
to be changed when regulator is disabled. Create a generic function for this
as it seems ROHM keeps designing such outputs.

Patch 3:
Use this generic function with the bd71837/47/50

Patch 4 & 5:
kerneldoc updates.

--

Matti Vaittinen (5):
  regulator: irq_helpers: Allow omitting map_event for simple IRQs
  regulator: rohm-regulator: add helper for restricted voltage setting
  regulator: bd718x7: Use rohm generic restricted voltage setting
  regulator: Add units to limit documentation
  regulator: Update protection IRQ helper docs

 drivers/regulator/bd718x7-regulator.c | 29 ++------------
 drivers/regulator/irq_helpers.c       | 52 +++++++++++++++++++++++-
 drivers/regulator/rohm-regulator.c    | 16 ++++++++
 include/linux/mfd/rohm-generic.h      |  7 ++++
 include/linux/regulator/driver.h      | 58 ++++++++++++++++++++++-----
 5 files changed, 126 insertions(+), 36 deletions(-)

-- 
2.31.1


-- 
Matti Vaittinen, Linux device drivers
ROHM Semiconductors, Finland SWDC
Kiviharjunlenkki 1E
90220 OULU
FINLAND

~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~
Simon says - in Latin please.
~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~
Thanks to Simon Glass for the translation =] 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2021-11-18 11:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-18 11:47 Matti Vaittinen [this message]
2021-11-18 11:48 ` [PATCH 1/5] regulator: irq_helpers: Allow omitting map_event for simple IRQs Matti Vaittinen
2021-11-18 13:35   ` Mark Brown
2021-11-18 15:14     ` Vaittinen, Matti
2021-11-18 15:20       ` Mark Brown
2021-11-18 15:31         ` Vaittinen, Matti
2021-11-18 11:48 ` [PATCH 2/5] regulator: rohm-regulator: add helper for restricted voltage setting Matti Vaittinen
2021-11-18 11:49 ` [PATCH 3/5] regulator: bd718x7: Use rohm generic " Matti Vaittinen
2021-11-18 11:49 ` [PATCH 4/5] regulator: Add units to limit documentation Matti Vaittinen
2021-11-18 11:49 ` [PATCH 5/5] regulator: Update protection IRQ helper docs Matti Vaittinen
2021-11-18 19:06 ` (subset) [PATCH 0/5] Few miscellaneous regulator improvements Mark Brown

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=cover.1637233864.git.matti.vaittinen@fi.rohmeurope.com \
    --to=matti.vaittinen@fi.rohmeurope.com \
    --cc=broonie@kernel.org \
    --cc=lee.jones@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-power@fi.rohmeurope.com \
    --cc=mazziesaccount@gmail.com \
    /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).