pinctrl: aspeed: Fix GPI only function problem.
authorBilly Tsai <billy_tsai@aspeedtech.com>
Fri, 30 Oct 2020 05:54:50 +0000 (13:54 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 5 Nov 2020 14:32:58 +0000 (15:32 +0100)
commit9b92f5c51e9a41352d665f6f956bd95085a56a83
treead80ead184beb00d167ad6deb7f908938355d347
parenta835d3a114ab0dc2f0d8c6963c3f53734b1c5965
pinctrl: aspeed: Fix GPI only function problem.

Some gpio pin at aspeed soc is input only and the prefix name of these
pin is "GPI" only.
This patch fine-tune the condition of GPIO check from "GPIO" to "GPI"
and it will fix the usage error of banks D and E in the AST2400/AST2500
and banks T and U in the AST2600.

Fixes: 4d3d0e4272d8 ("pinctrl: Add core support for Aspeed SoCs")
Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Link: https://lore.kernel.org/r/20201030055450.29613-1-billy_tsai@aspeedtech.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/aspeed/pinctrl-aspeed.c