[Letux-kernel] [RFC 1/4] mmc: hack pwrseq to fix gta04 bt problems

H. Nikolaus Schaller hns at goldelico.com
Tue Jun 23 11:26:24 CEST 2020


From: Andreas Kemnade <andreas at kemnade.info>

The reset pin is set to 1 (= inactive, so the 0 in the code)
if mmc is powered off. That make bluetooth usable without wifi on
gta04

Signed-off-by: Andreas Kemnade <andreas at kemnade.info>
---
 drivers/mmc/core/pwrseq_simple.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/core/pwrseq_simple.c b/drivers/mmc/core/pwrseq_simple.c
index ea4d3670560e..cb67172a9eb0 100644
--- a/drivers/mmc/core/pwrseq_simple.c
+++ b/drivers/mmc/core/pwrseq_simple.c
@@ -84,7 +84,7 @@ static void mmc_pwrseq_simple_power_off(struct mmc_host *host)
 {
 	struct mmc_pwrseq_simple *pwrseq = to_pwrseq_simple(host->pwrseq);
 
-	mmc_pwrseq_simple_set_gpios_value(pwrseq, 1);
+	mmc_pwrseq_simple_set_gpios_value(pwrseq, 0);
 
 	if (pwrseq->power_off_delay_us)
 		usleep_range(pwrseq->power_off_delay_us,
-- 
2.26.2



More information about the Letux-kernel mailing list