]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: add warning flags
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Thu, 3 Jun 2021 05:41:21 +0000 (08:41 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 21 Jun 2021 12:08:38 +0000 (13:08 +0100)
commit54ddcbee3a2b2d4da9f04282d0edf9fe2835ae43
tree779afd7579f9190fc6459a2c931aa48b5f171bd5
parent296795df3f88647b0ff737f8ce0da4e9533f4d68
regulator: add warning flags

Add 'warning' level events and error flags to regulator core.
Current regulator core notifications are used to inform consumers
about errors where HW is misbehaving in such way it is assumed to
be broken/unrecoverable.

There are PMICs which are designed for system(s) that may have use
for regulator indications sent before HW is damaged so that some
board/consumer specific recovery-event can be performed while
continuing most of the normal operations.

Add new WARNING level events and notifications to be used for
that purpose.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Link: https://lore.kernel.org/r/9b54aa5589ae4b5945d53d114bac3fae55fa4818.1622628333.git.matti.vaittinen@fi.rohmeurope.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/regulator/consumer.h