[Letux-kernel] [PATCH] lx16: fix card detection on mmc1 and heartbeat led

Andreas Kemnade andreas at kemnade.info
Sun Feb 11 00:21:13 CET 2024


Shadow pinctrl seems not fully working, lets use the non-shadow variant
Heartbeat led works, mmc1 now gives -145 as well if card is present,
if not there, we have silence.

Signed-off-by: Andreas Kemnade <andreas at kemnade.info>
---
on top of paulb-letux-6.7-rc8-mmc
 drivers/pinctrl/pinctrl-ingenic.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pinctrl/pinctrl-ingenic.c b/drivers/pinctrl/pinctrl-ingenic.c
index 6f5515329383a..f6de8eeda5cda 100644
--- a/drivers/pinctrl/pinctrl-ingenic.c
+++ b/drivers/pinctrl/pinctrl-ingenic.c
@@ -3937,7 +3937,7 @@ static int ingenic_pinmux_set_pin_fn(struct ingenic_pinctrl *jzpc,
 	dev_dbg(jzpc->dev, "set pin P%c%u to function %u\n",
 			'A' + offt, idx, func);
 
-	if (is_soc_or_above(jzpc, ID_X1000)) {
+	if (0 && is_soc_or_above(jzpc, ID_X1000)) {
 		ingenic_shadow_config_pin(jzpc, pin, JZ4770_GPIO_INT, false);
 		ingenic_shadow_config_pin(jzpc, pin, GPIO_MSK, false);
 		ingenic_shadow_config_pin(jzpc, pin, JZ4770_GPIO_PAT1, func & 0x2);
@@ -4006,7 +4006,7 @@ static int ingenic_pinmux_gpio_set_direction(struct pinctrl_dev *pctldev,
 	dev_dbg(pctldev->dev, "set pin P%c%u to %sput\n",
 			'A' + offt, idx, input ? "in" : "out");
 
-	if (is_soc_or_above(jzpc, ID_X1000)) {
+	if (0 && is_soc_or_above(jzpc, ID_X1000)) {
 		ingenic_shadow_config_pin(jzpc, pin, JZ4770_GPIO_INT, false);
 		ingenic_shadow_config_pin(jzpc, pin, GPIO_MSK, true);
 		ingenic_shadow_config_pin(jzpc, pin, JZ4770_GPIO_PAT1, input);
-- 
2.39.2



More information about the Letux-kernel mailing list