]> www.infradead.org Git - users/jedix/linux-maple.git/commit
regulator: core: Add helper for allow HW access to enable/disable regulator
authorBiju Das <biju.das.jz@bp.renesas.com>
Sun, 16 Jun 2024 10:53:55 +0000 (11:53 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 26 Jun 2024 17:17:05 +0000 (18:17 +0100)
commit1cb7d29157603561af4c38535e936850ceb99f0f
tree32f6a232bd55180c80c317636403549141e2c2c4
parentf2661062f16b2de5d7b6a5c42a9a5c96326b8454
regulator: core: Add helper for allow HW access to enable/disable regulator

Add a helper function that allow regulator consumers to allow low-level
HW access, in order to enable/disable regulator in atomic context.

The use-case for RZ/G2L SoC is to enable VBUS selection register based
on vbus detection that happens in interrupt context.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://patch.msgid.link/20240616105402.45211-4-biju.das.jz@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/power/regulator/consumer.rst
drivers/regulator/core.c
include/linux/regulator/consumer.h