OSDN Git Service

pinctrl: ocelot: fix gpio direction
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 22 Mar 2018 12:35:00 +0000 (13:35 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 26 Mar 2018 09:04:48 +0000 (11:04 +0200)
commit44edff1bbc48595a041f65a725203763e3590a73
tree4414df946cfb0cd3c7423edf70b658a026b5c7af
parente6c462d3ecc69a23802f588d53abec003f2d35c1
pinctrl: ocelot: fix gpio direction

Bits have to be cleared in DEVCPU_GCB:GPIO:GPIO_OE for input and set for
output. ocelot_gpio_set_direction() got it wrong and this went unnoticed
when the driver was reworked.

Reported-by: Gregory Clement <gregory.clement@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-ocelot.c