|
@@ -322,7 +322,7 @@ static int byt_gpio_direction_output(struct gpio_chip *chip,
|
|
"Potential Error: Setting GPIO with direct_irq_en to output");
|
|
"Potential Error: Setting GPIO with direct_irq_en to output");
|
|
|
|
|
|
reg_val = readl(reg) | BYT_DIR_MASK;
|
|
reg_val = readl(reg) | BYT_DIR_MASK;
|
|
- reg_val &= ~BYT_OUTPUT_EN;
|
|
|
|
|
|
+ reg_val &= ~(BYT_OUTPUT_EN | BYT_INPUT_EN);
|
|
|
|
|
|
if (value)
|
|
if (value)
|
|
writel(reg_val | BYT_LEVEL, reg);
|
|
writel(reg_val | BYT_LEVEL, reg);
|