This reverts commit 0861e61e86a5de096cb1ac84d991caaff0b1f175. xilinx uses an old gpio driver that has no such issue, needn't this bug fix. Revert it.
Signed-off-by: Zhang Xiao <[email protected]> --- drivers/gpio/gpio-xilinx.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/gpio/gpio-xilinx.c b/drivers/gpio/gpio-xilinx.c index cea128a0ec69..906b67a93fa8 100644 --- a/drivers/gpio/gpio-xilinx.c +++ b/drivers/gpio/gpio-xilinx.c @@ -149,15 +149,6 @@ static void xgpio_set_multiple(struct gpio_chip *gc, unsigned long *mask, for (i = 0; i < gc->ngpio; i++) { if (*mask == 0) break; - /* Once finished with an index write it out to the register */ - if (index != xgpio_index(chip, i)) { - xgpio_writereg(mm_gc->regs + XGPIO_DATA_OFFSET + - index * XGPIO_CHANNEL_OFFSET, - chip->gpio_state[index]); - spin_unlock_irqrestore(&chip->gpio_lock[index], flags); - index = xgpio_index(chip, i); - spin_lock_irqsave(&chip->gpio_lock[index], flags); - } if (__test_and_clear_bit(i, mask)) { if (test_bit(i, bits)) chip->gpio_state |= BIT(i); -- 2.17.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#8643): https://lists.yoctoproject.org/g/linux-yocto/message/8643 Mute This Topic: https://lists.yoctoproject.org/mt/74067898/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
