浏览代码

sdio: change clock speed

Change clock speed to the highest supported by the card.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Pierre Ossman 18 年之前
父节点
当前提交
6db5020e73
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      drivers/mmc/core/sdio.c

+ 6 - 0
drivers/mmc/core/sdio.c

@@ -293,6 +293,12 @@ int mmc_attach_sdio(struct mmc_host *host, u32 ocr)
 	if (err)
 	if (err)
 		goto remove;
 		goto remove;
 
 
+	/*
+	 * No support for high-speed yet, so just set
+	 * the card's maximum speed.
+	 */
+	mmc_set_clock(host, card->cis.max_dtr);
+
 	/*
 	/*
 	 * Initialize (but don't add) all present functions.
 	 * Initialize (but don't add) all present functions.
 	 */
 	 */