mmc: drop the speed mode of card's state
Timing mode identifier has same role and can take the place of speed mode. This change removes all related speed mode. Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com> Tested-by: Jaehoon Chung <jh80.chung@samsung.com> Acked-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <chris@printf.net>
这个提交包含在:
@@ -285,7 +285,6 @@ static void rsi_reset_card(struct sdio_func *pfunction)
|
||||
if (err) {
|
||||
rsi_dbg(ERR_ZONE, "%s: CCCR speed reg read failed: %d\n",
|
||||
__func__, err);
|
||||
card->state &= ~MMC_STATE_HIGHSPEED;
|
||||
} else {
|
||||
err = rsi_cmd52writebyte(card,
|
||||
SDIO_CCCR_SPEED,
|
||||
@@ -296,14 +295,13 @@ static void rsi_reset_card(struct sdio_func *pfunction)
|
||||
__func__, err);
|
||||
return;
|
||||
}
|
||||
mmc_card_set_highspeed(card);
|
||||
host->ios.timing = MMC_TIMING_SD_HS;
|
||||
host->ops->set_ios(host, &host->ios);
|
||||
}
|
||||
}
|
||||
|
||||
/* Set clock */
|
||||
if (mmc_card_highspeed(card))
|
||||
if (mmc_card_hs(card))
|
||||
clock = 50000000;
|
||||
else
|
||||
clock = card->cis.max_dtr;
|
||||
|
在新工单中引用
屏蔽一个用户