]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pinctrl: aspeed: Fix GPI only function problem.
authorBilly Tsai <billy_tsai@aspeedtech.com>
Fri, 30 Oct 2020 05:54:50 +0000 (13:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 18:22:16 +0000 (19:22 +0100)
commit6726fbff19bfdc3d213109cfb8f9acba4a246366
tree4b72718f3cf7d5ab4e3ae1acc3730b0530b6c318
parent439bbd2f9369cde21e9c0e0a553a327ac7b8f792
pinctrl: aspeed: Fix GPI only function problem.

[ Upstream commit 9b92f5c51e9a41352d665f6f956bd95085a56a83 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/aspeed/pinctrl-aspeed.c