Commit 03b42710 authored by Steve Twiss's avatar Steve Twiss Committed by Lee Jones

mfd: da9063: Fix missing DA9063_M_DVC_RDY mask bit

Fix a missing DVC_RDY interrupt mask in struct regmap_irq definition.

The original submission of this driver did not contain all interrupt
masking definitions in the struct regmap_irq contained in the file
da9063-irq.c

The solution is to add a DA9063_IRQ_DVC_RDY entry to enum da9063_irqs
list and to add the corresponding values to compensate for the missing
mask bit in the static const struct regmap_irq da9063_irqs[] table.
Signed-off-by: default avatarSteve Twiss <stwiss.opensource@diasemi.com>
Signed-off-by: default avatarAdam Ward <adam.ward.opensource@diasemi.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent d8d79f8f
...@@ -77,6 +77,10 @@ static const struct regmap_irq da9063_irqs[] = { ...@@ -77,6 +77,10 @@ static const struct regmap_irq da9063_irqs[] = {
.reg_offset = DA9063_REG_EVENT_B_OFFSET, .reg_offset = DA9063_REG_EVENT_B_OFFSET,
.mask = DA9063_M_UVOV, .mask = DA9063_M_UVOV,
}, },
[DA9063_IRQ_DVC_RDY] = {
.reg_offset = DA9063_REG_EVENT_B_OFFSET,
.mask = DA9063_M_DVC_RDY,
},
[DA9063_IRQ_VDD_MON] = { [DA9063_IRQ_VDD_MON] = {
.reg_offset = DA9063_REG_EVENT_B_OFFSET, .reg_offset = DA9063_REG_EVENT_B_OFFSET,
.mask = DA9063_M_VDD_MON, .mask = DA9063_M_VDD_MON,
......
...@@ -51,6 +51,7 @@ enum da9063_irqs { ...@@ -51,6 +51,7 @@ enum da9063_irqs {
DA9063_IRQ_COMP_1V2, DA9063_IRQ_COMP_1V2,
DA9063_IRQ_LDO_LIM, DA9063_IRQ_LDO_LIM,
DA9063_IRQ_REG_UVOV, DA9063_IRQ_REG_UVOV,
DA9063_IRQ_DVC_RDY,
DA9063_IRQ_VDD_MON, DA9063_IRQ_VDD_MON,
DA9063_IRQ_WARN, DA9063_IRQ_WARN,
DA9063_IRQ_GPI0, DA9063_IRQ_GPI0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment