diff options
author | Robin Gong <yibin.gong@nxp.com> | 2016-04-29 09:55:33 +0800 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | 68ee4e82ed239551b4c96513de492d44ed3e0167 (patch) | |
tree | 02d76ee13b039ffc244f4ea264ed9f24f27acd33 /drivers/mfd | |
parent | 5538afa90a9947667013acb19785fb3416d0b78c (diff) |
MLK-12928-11 mfd: pf1550: add irq ack for pf1550
add ".use_ack" ..etc for pf1550 irq, since we have to clear irq status in
pf1550, else no any more interrupt trigged.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/pf1550.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mfd/pf1550.c b/drivers/mfd/pf1550.c index b60e8225ffc2..e12d60df1b98 100644 --- a/drivers/mfd/pf1550.c +++ b/drivers/mfd/pf1550.c @@ -86,8 +86,11 @@ static const struct regmap_irq pf1550_onkey_irqs[] = { static const struct regmap_irq_chip pf1550_onkey_irq_chip = { .name = "pf1550-onkey", .status_base = PF1550_PMIC_REG_ONKEY_INT_STAT0, + .ack_base = PF1550_PMIC_REG_ONKEY_INT_STAT0, .mask_base = PF1550_PMIC_REG_ONKEY_INT_MASK0, .mask_invert = false, + .use_ack = 1, + .init_ack_masked = 1, .num_regs = 1, .irqs = pf1550_onkey_irqs, .num_irqs = ARRAY_SIZE(pf1550_onkey_irqs), @@ -105,8 +108,11 @@ static const struct regmap_irq pf1550_charger_irqs[] = { static const struct regmap_irq_chip pf1550_charger_irq_chip = { .name = "pf1550-charger", .status_base = PF1550_CHARG_REG_CHG_INT, + .ack_base = PF1550_CHARG_REG_CHG_INT, .mask_base = PF1550_CHARG_REG_CHG_INT_MASK, .mask_invert = false, + .use_ack = 1, + .init_ack_masked = 1, .num_regs = 1, .irqs = pf1550_charger_irqs, .num_irqs = ARRAY_SIZE(pf1550_charger_irqs), |