Skip to content

Commit cdca06e

Browse files
Alexander SteinLinus Walleij
authored andcommitted
pinctrl: baytrail: Add missing spinlock usage in byt_gpio_irq_handler
According to VLI64 Intel Atom E3800 Specification Update (#329901) concurrent read accesses may result in returning 0xffffffff and write accesses may be dropped silently. To workaround all accesses must be protected by locks. Cc: stable@vger.kernel.org Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 1b89970 commit cdca06e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/pinctrl/intel/pinctrl-baytrail.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,7 +1623,9 @@ static void byt_gpio_irq_handler(struct irq_desc *desc)
16231623
continue;
16241624
}
16251625

1626+
raw_spin_lock(&vg->lock);
16261627
pending = readl(reg);
1628+
raw_spin_unlock(&vg->lock);
16271629
for_each_set_bit(pin, &pending, 32) {
16281630
virq = irq_find_mapping(vg->chip.irqdomain, base + pin);
16291631
generic_handle_irq(virq);

0 commit comments

Comments
 (0)