Skip to contentSkip to conversation

mmc: core: UHS-II support, skip set_chip_select()

RFC PATCH In review Ben Chuang 1 participant 1 message Jul 10, 2020 MMC, SD and SDIO

lore
Share & tools
lore

Ben Chuang

author
#0 lore raw

RFC PATCH v3 3/21 mmc: core: UHS-II support, skip set_chip_select()

From: AKASHI Takahiro <[email protected]>

mmc_set_chip_select() should be called only in UHS-I mode, and not for UHS-II mode.

---
 drivers/mmc/core/core.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/mmc/core/core.c +4 -2
index 85c83c82ad0c..c6540d56646b 100644
@@ -898,8 +898,10 @@ static inline void mmc_set_ios(struct mmc_host *host)
  */
 void mmc_set_chip_select(struct mmc_host *host, int mode)
 {
-	host->ios.chip_select = mode;
-	mmc_set_ios(host);
+	if (!(host->flags & MMC_UHS2_INITIALIZED)) {
+		host->ios.chip_select = mode;
+		mmc_set_ios(host);
+	}
 }
 
 /*
Signature · 1 line
2.27.0