diff options
author | Wells Lu <wellslutw@gmail.com> | 2022-04-15 12:41:28 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2022-04-21 17:28:59 +0300 |
commit | 08b7cf134eafca3b38e818d934b00dfe6b5b0fb4 (patch) | |
tree | 52009c502ad2be8823839d410215b9cfb8e26bdd /drivers/pinctrl/sunplus | |
parent | 87950929e2ff2236207bdbe14bff8230558b541b (diff) | |
download | linux-08b7cf134eafca3b38e818d934b00dfe6b5b0fb4.tar.xz |
pinctrl: Fix an error in pin-function table of SP7021
The first valid item of pin-function table should
start from the third item. The first two items,
due to historical and compatible reasons, should
be dummy items.
The two dummy items were removed accidentally in
initial submission. This fix adds them back.
Signed-off-by: Wells Lu <wellslutw@gmail.com>
Link: https://lore.kernel.org/r/1650015688-19774-1-git-send-email-wellslutw@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sunplus')
-rw-r--r-- | drivers/pinctrl/sunplus/sppctl_sp7021.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/pinctrl/sunplus/sppctl_sp7021.c b/drivers/pinctrl/sunplus/sppctl_sp7021.c index 9748345b9298..cd657760a644 100644 --- a/drivers/pinctrl/sunplus/sppctl_sp7021.c +++ b/drivers/pinctrl/sunplus/sppctl_sp7021.c @@ -419,7 +419,15 @@ static const struct sppctl_grp sp7021grps_prbp[] = { EGRP("PROBE_PORT2", 2, pins_prp2), }; +/* + * Due to compatible reason, the first valid item should start at the third + * position of the array. Please keep the first two items of the table + * no use (dummy). + */ const struct sppctl_func sppctl_list_funcs[] = { + FNCN("", pinmux_type_fpmx, 0x00, 0, 0), + FNCN("", pinmux_type_fpmx, 0x00, 0, 0), + FNCN("L2SW_CLK_OUT", pinmux_type_fpmx, 0x00, 0, 7), FNCN("L2SW_MAC_SMI_MDC", pinmux_type_fpmx, 0x00, 8, 7), FNCN("L2SW_LED_FLASH0", pinmux_type_fpmx, 0x01, 0, 7), |