pinctrl: mediatek: paris: Skip custom extra pin config dump for virtual GPIOs
authorChen-Yu Tsai <wenst@chromium.org>
Tue, 8 Mar 2022 10:09:51 +0000 (18:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:49 +0000 (14:23 +0200)
commita843ba2e9c875b4ad5eb2e8ec822c46f6d8a5ece
tree818dc25a16b08c24141b334b80f1c8c0da90cf37
parent070d46aee1513210ad5471569508d6046ae1e3d4
pinctrl: mediatek: paris: Skip custom extra pin config dump for virtual GPIOs

[ Upstream commit 1763933d377ecb05454f8d20e3c8922480db2ac0 ]

Virtual GPIOs do not have any hardware state associated with them. Any
attempt to read back hardware state for these pins result in error
codes.

Skip dumping extra pin config information for these virtual GPIOs.

Fixes: 184d8e13f9b1 ("pinctrl: mediatek: Add support for pin configuration dump via debugfs.")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220308100956.2750295-7-wenst@chromium.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/mediatek/pinctrl-paris.c