Selaa lähdekoodia

clean up PCI bus topology

This makes the PCI bus topology more standard for devices behind a bridge

Signed-off-by: Tim Harvey <[email protected]>

SVN-Revision: 35078
Imre Kaloz 13 vuotta sitten
vanhempi
sitoutus
b63b970866
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/gpio.c

+ 2 - 2
target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/gpio.c

@@ -59,9 +59,9 @@ __set_direction(struct cns3xxx_gpio_chip *cchip, unsigned pin, int input)
 
 	reg = __raw_readl(cchip->base + GPIO_DIR);
 	if (input)
-		reg |= 1 << pin;
+		reg &= ~(1 << pin);
 	else
-		reg &= !(1 << pin);
+		reg |= (1 << pin);
 	__raw_writel(reg, cchip->base + GPIO_DIR);
 }