Commit ce5c0d82 authored by perillamint's avatar perillamint

DIRTY HACK: Prevent MAX77620 GPIO driver messing up MAX77620_REG_CNFGGLBL1 register

parent f747c4b4
...@@ -528,6 +528,12 @@ int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags, ...@@ -528,6 +528,12 @@ int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags,
d->mask_buf[i] = d->mask_buf_def[i]; d->mask_buf[i] = d->mask_buf_def[i];
reg = chip->mask_base + reg = chip->mask_base +
(i * map->reg_stride * d->irq_reg_stride); (i * map->reg_stride * d->irq_reg_stride);
// Dirty workaround for Nvidia MAX77620 driver
if (strcmp(chip->name, "max77620-gpio") == 0 && reg == 0x00) {
continue;
}
if (chip->mask_invert) if (chip->mask_invert)
ret = regmap_irq_update_bits(d, reg, ret = regmap_irq_update_bits(d, reg,
d->mask_buf[i], ~d->mask_buf[i]); d->mask_buf[i], ~d->mask_buf[i]);
......
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