gpio: ath79: Fix the logic to clear offset bit of AR71XX_GPIO_REG_OE register
Subsystems (2)
PATCH 1/1 gpio: ath79: Fix the logic to clear offset bit of AR71XX_GPIO_REG_OE register
Signed-off-by Axel Lin <[email protected]>
--- drivers/gpio/gpio-ath79.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-ath79.c +1 -1
@@ -113,7 +113,7 @@ static int ar934x_gpio_direction_output(struct gpio_chip *chip, unsigned offset,__raw_writel (BIT (offset), ctrl->base +AR71XX_GPIO_REG_CLEAR );__raw_writel ( -__raw_readl (ctrl->base +AR71XX_GPIO_REG_OE ) &BIT (offset), +__raw_readl (ctrl->base +AR71XX_GPIO_REG_OE ) & ~BIT (offset), ctrl->base +AR71XX_GPIO_REG_OE );spin_unlock_irqrestore (&ctrl->lock, flags);
Signature · 1 line
2.1.4
Quoted 1 line · On Tue, 08 Dec 2015 23:01:07 +0800 Axel Lin <[email protected]> wrote:
Signed-off-by Axel Lin <[email protected]>
Acked-by Alban Bedel <[email protected]>
Quoted 17 lines
--- drivers/gpio/gpio-ath79.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpio/gpio-ath79.c +1
-1@@ -113,7 +113,7 @@ static int ar934x_gpio_direction_output(struct gpio_chip *chip, unsigned offset,__raw_writel (BIT (offset), ctrl->base +AR71XX_GPIO_REG_CLEAR );__raw_writel ( -__raw_readl (ctrl->base +AR71XX_GPIO_REG_OE ) &BIT (offset), +__raw_readl (ctrl->base +AR71XX_GPIO_REG_OE ) & ~BIT (offset), ctrl->base +AR71XX_GPIO_REG_OE );spin_unlock_irqrestore (&ctrl->lock, flags);
Quoted 1 line · Axel Lin
Signed-off-by Axel Lin <[email protected]>
Patch applied for fixes with Alban's ACK.
Yours,
Linus Walleij