提交 18fadd6a 编写于 作者: A Axel Lin 提交者: Linus Walleij

gpio: tqmx86: Set proper output level for direction_output

For output-only gpios, direction_output should set proper output level.
Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Fixes: b868db94 ("gpio: tqmx86: Add GPIO from for this IO controller")
Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 567cbf07
......@@ -93,8 +93,9 @@ static int tqmx86_gpio_direction_output(struct gpio_chip *chip,
/* Direction cannot be changed, validate is an output */
if (BIT(offset) & TQMX86_DIR_INPUT_MASK)
return -EINVAL;
else
return 0;
tqmx86_gpio_set(chip, offset, value);
return 0;
}
static int tqmx86_gpio_get_direction(struct gpio_chip *chip,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册