summaryrefslogtreecommitdiff
path: root/recipes-kernel/linux/linux-at91-5.4.81/linux-5.4-disable-atmel_mci-mmc_pwrseq-due-to-build-fail.patch
blob: 3155c920a0916a0fa8705aeffd89dd63224e2867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From d75e4b5446bf26085a8db8ff8dca0f78136c9286 Mon Sep 17 00:00:00 2001
From: Mykyta Dorokhin <mykyta.dorokhin@globallogic.com>
Date: Fri, 1 Jan 2021 02:35:45 +0200
Subject: [PATCH] disable atmel_mci mmc_pwrseq due to build fail

---
 drivers/mmc/host/atmel-mci.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c
index 088803b..a750b0c 100644
--- a/drivers/mmc/host/atmel-mci.c
+++ b/drivers/mmc/host/atmel-mci.c
@@ -2301,7 +2301,13 @@ static int atmci_init_slot(struct atmel_mci *host,
 
 	host->slot[id] = slot;
 	mmc_regulator_get_supply(mmc);
+#if 0
+	// pwrsec is not used anyways having this line 
+	// breaks building qtmel_mci as a module (only built-in)
+	// which breaks wifi reload support (modprobe atmel_mci/modprobe -r atmel_mci)
+	// on MTR devices (see wireless-conf.init)
 	mmc_pwrseq_alloc(slot->mmc);
+#endif
 	mmc_add_host(mmc);
 
 	if (gpio_is_valid(slot->detect_pin)) {
-- 
1.9.1