]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.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)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 10 Dec 2020 11:06:28 +0000 (12:06 +0100)
commit4ad4d2c76dd4f8cfd28c062fe5fb7e6d07f9fb49
tree624b5bc7d4df0eabea2b4f8cdbbf4163ab684c66
parent79daafb50db6874e6f9cde60fc390baaedb72e7d
pinctrl: aspeed: Fix GPI only function problem.

BugLink: https://bugs.launchpad.net/bugs/1905618
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/pinctrl/aspeed/pinctrl-aspeed.c