]> www.infradead.org Git - users/jedix/linux-maple.git/commit
regulator: bd96801: Add ERRB IRQ
authorMatti Vaittinen <mazziesaccount@gmail.com>
Thu, 14 Nov 2024 07:19:59 +0000 (09:19 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 2 Dec 2024 00:31:31 +0000 (00:31 +0000)
commita8d77166fcfe1cd4be70c21d65ff2b27b4f54a26
tree882cf16abb2fd5b9ffc5d276ace0443ac8e6c7e9
parent40384c840ea1944d7c5a392e8975ed088ecf0b37
regulator: bd96801: Add ERRB IRQ

The ROHM BD96801 "scalable PMIC" provides two physical IRQs. The ERRB
handling can in many cases be omitted because it is used to inform fatal
IRQs, which usually kill the power from the SOC.

There may however be use-cases where the SOC has a 'back-up' emergency
power source which allows some very short time of operation to try to
gracefully shut down sensitive hardware. Furthermore, it is possible the
processor controlling the PMIC is not powered by the PMIC. In such cases
handling the ERRB IRQs may be beneficial.

Add support for ERRB IRQs.

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/ZzWkny4lKpY09SX5@mva-rohm
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/bd96801-regulator.c