]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: ocelot: fix gpio direction for pins after 31
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 20 Jun 2019 18:30:36 +0000 (20:30 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 25 Jun 2019 13:41:41 +0000 (15:41 +0200)
commit4ef5f6e1448ac58cb9f707d2ad75ddd50739cd54
treeb8c4506d8f874976bd0b46ad1bf08337c0d66738
parent72e4f3586b43ae124566eb76ff7bdd6ce8cbea18
pinctrl: ocelot: fix gpio direction for pins after 31

The third argument passed to REG is not the correct one and
ocelot_gpio_set_direction is not working for pins after 31. Fix that by
passing the pin number instead of the modulo 32 value.

Fixes: 75b743bc01af pinctrl: ocelot: add MSCC Jaguar2 support
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-ocelot.c