Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18fadd6a authored by Axel Lin's avatar Axel Lin Committed by Linus Walleij
Browse files

gpio: tqmx86: Set proper output level for direction_output



For output-only gpios, direction_output should set proper output level.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Fixes: b868db94 ("gpio: tqmx86: Add GPIO from for this IO controller")
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 567cbf07
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -93,7 +93,8 @@ 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

	tqmx86_gpio_set(chip, offset, value);
	return 0;
}