]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: aspeed: fix ast2600 bank properties
authorBilly Tsai <billy_tsai@aspeedtech.com>
Mon, 19 Oct 2020 04:50:26 +0000 (12:50 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 26 Oct 2020 14:51:57 +0000 (15:51 +0100)
commita10935dae371c67787bc2fd9a30ad89923e31ab7
treee146b84c1ed9cafce628facc536cf5b2949f7852
parentd98fe697afa99d720e282d2c7f4179062934d14e
gpio: aspeed: fix ast2600 bank properties

GPIO_T is mapped to the most significant byte of input/output mask, and
the byte in "output" mask should be 0 because GPIO_T is input only. All
the other bits need to be 1 because GPIO_Q/R/S support both input and
output modes.

Fixes: 3d9d701fdc98 ("gpio: aspeed: Add in ast2600 details to Aspeed driver")
Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
Reviewed-by: Tao Ren <rentao.bupt@gmail.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-aspeed.c