linux/drivers/pinctrl/aspeed
Billy Tsai cf517fef60 pinctrl: aspeed: Force to disable the function's signal
When the driver want to disable the signal of the function, it doesn't
need to query the state of the mux function's signal on a pin. The
condition below will miss the disable of the signal:
Ball | Default | P0 Signal | P0 Expression               | Other
-----+---------+-----------+-----------------------------+----------
 E21   GPIOG0    SD2CLK      SCU4B4[16]=1 & SCU450[1]=1    GPIOG0
-----+---------+-----------+-----------------------------+----------
 B22   GPIOG1    SD2CMD      SCU4B4[17]=1 & SCU450[1]=1    GPIOG1
-----+---------+-----------+-----------------------------+----------
Assume the register status like below:
SCU4B4[16] == 1 & SCU4B4[17] == 1 & SCU450[1]==1
After the driver set the Ball E21 to the GPIOG0:
SCU4B4[16] == 0 & SCU4B4[17] == 1 & SCU450[1]==0
When the driver want to set the Ball B22 to the GPIOG1, the condition of
the SD2CMD will be false causing SCU4B4[17] not to be cleared.

Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
Acked-by: Andrew Jeffery <andrew@aj.id.au>
Link: https://lore.kernel.org/r/20220818101839.28860-1-billy_tsai@aspeedtech.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2022-08-31 14:14:31 +02:00
..
Kconfig pinctrl: aspeed: fix unmet dependencies on MFD_SYSCON for PINCTRL_ASPEED 2021-12-16 04:28:49 +01:00
Makefile pinctrl: aspeed: Add AST2600 pinmux support 2019-08-05 12:41:18 +02:00
pinctrl-aspeed-g4.c pinctrl: aspeed: Use masks to describe pinconf bitfields 2019-12-13 09:40:37 +01:00
pinctrl-aspeed-g5.c pinctrl: aspeed: Fix minor documentation error 2021-05-19 02:11:18 +02:00
pinctrl-aspeed-g6.c pinctrl: pinctrl-aspeed-g6: add FWQSPI function-group 2022-04-13 11:53:52 +09:30
pinctrl-aspeed.c pinctrl: aspeed: Force to disable the function's signal 2022-08-31 14:14:31 +02:00
pinctrl-aspeed.h pinctrl: aspeed-g6: Add AST2600 pinconf support 2019-12-13 09:41:01 +01:00
pinmux-aspeed.c pinctrl: aspeed: placate kernel-doc warnings 2021-08-10 15:29:44 +02:00
pinmux-aspeed.h pinctrl: aspeed: Fix typo in comment 2022-06-28 14:30:11 +02:00