mfd: bd9576: Add IRQ support
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Wed, 10 Mar 2021 08:08:02 +0000 (10:08 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 10 Mar 2021 10:58:33 +0000 (10:58 +0000)
commit0e9692607f94ecc59aedc0ecfd2348124c743412
treeedf2ffbb94581c26a2e686e5d7300c89d7451bdf
parentb1b3ced389795d2671e88dd3e9e07a48dc9632fc
mfd: bd9576: Add IRQ support

BD9573 and BD9576 support set of "protection" interrupts for "fatal"
issues. Those lead to SOC reset as PMIC shuts the power outputs. Thus
there is no relevant IRQ handling for them.

Few "detection" interrupts were added to the BD9576 with the idea that
SOC could take some recovery-action before error gets unrecoverable.

Unfortunately the BD9576 interrupt logic was not re-evaluated. IRQs
are not designed to be properly acknowleged - and IRQ line is kept
active for whole duration of error condition (in comparison to
informing only about state change).

For above reason, do not consider missing IRQ as error.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/rohm-bd9576.c
include/linux/mfd/rohm-bd957x.h