]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: aspeed: fix ast2600 bank properties
authorTao Ren <rentao.bupt@gmail.com>
Wed, 16 Sep 2020 20:42:16 +0000 (13:42 -0700)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 24 Sep 2020 13:37:18 +0000 (15:37 +0200)
commita8c54c29421cbe05dcde9c55d2eb24acbf217fc2
treeb767b6498caa48a196e3c5f68d9e3acf554de600
parent39bc86db3803492d1803083747e89b1865ae9e49
gpio: aspeed: fix ast2600 bank properties

GPIO_U is mapped to the least significant byte of input/output mask, and
the byte in "output" mask should be 0 because GPIO_U is input only. All
the other bits need to be 1 because GPIO_V/W/X support both input and
output modes.

Similarly, GPIO_Y/Z are mapped to the 2 least significant bytes, and the
according bits need to be 1 because GPIO_Y/Z support both input and
output modes.

Fixes: 07c44185085b ("gpio: aspeed: Add in ast2600 details to Aspeed driver")
Signed-off-by: Tao Ren <rentao.bupt@gmail.com>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-aspeed.c