staging: hikey9xx: hi6421-spmi-pmic: fix IRQ handler code
The conversion to regmap introduced a regression at the code
which reads from the IRQ register. Address that.
Fixes: fb02e3ebfb
("staging: hikey9xx: spmi driver: convert to regmap")
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/2eae710c333a8ee6f9e0a086c84115bc90a782ca.1611949675.git.mchehab+huawei@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9d8dbe9890
commit
8d12635631
@ -66,7 +66,7 @@ static irqreturn_t hi6421_spmi_irq_handler(int irq, void *priv)
|
||||
int i, offset;
|
||||
|
||||
for (i = 0; i < HISI_IRQ_ARRAY; i++) {
|
||||
regmap_read(ddata->regmap, offset, &data);
|
||||
regmap_read(ddata->regmap, SOC_PMIC_IRQ0_ADDR + i, &data);
|
||||
data &= HISI_MASK_FIELD;
|
||||
if (data != 0)
|
||||
pr_debug("data[%d]=0x%d\n\r", i, data);
|
||||
|
Loading…
Reference in New Issue
Block a user