Commit a812ba0f authored by Teppei Kamijou's avatar Teppei Kamijou Committed by Chris Ball

mmc: sh_mmcif: Avoid unnecessary mmc_delay() at mmc_card_sleepawake()

SH/R-Mobile MMCIF host controller can wait while the card signals busy.
Set MMC_CAP_WAIT_WHILE_BUSY to inform an upper layer (core/mmc_ops.c)
not to insert unnecessary mmc_delay().
Signed-off-by: default avatarTeppei Kamijou <teppei.kamijou.yb@renesas.com>
Signed-off-by: default avatarShinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent f9fd54f2
...@@ -758,6 +758,7 @@ static u32 sh_mmcif_set_cmd(struct sh_mmcif_host *host, ...@@ -758,6 +758,7 @@ static u32 sh_mmcif_set_cmd(struct sh_mmcif_host *host,
} }
switch (opc) { switch (opc) {
/* RBSY */ /* RBSY */
case MMC_SLEEP_AWAKE:
case MMC_SWITCH: case MMC_SWITCH:
case MMC_STOP_TRANSMISSION: case MMC_STOP_TRANSMISSION:
case MMC_SET_WRITE_PROT: case MMC_SET_WRITE_PROT:
...@@ -851,6 +852,7 @@ static void sh_mmcif_start_cmd(struct sh_mmcif_host *host, ...@@ -851,6 +852,7 @@ static void sh_mmcif_start_cmd(struct sh_mmcif_host *host,
switch (opc) { switch (opc) {
/* response busy check */ /* response busy check */
case MMC_SLEEP_AWAKE:
case MMC_SWITCH: case MMC_SWITCH:
case MMC_STOP_TRANSMISSION: case MMC_STOP_TRANSMISSION:
case MMC_SET_WRITE_PROT: case MMC_SET_WRITE_PROT:
...@@ -1357,7 +1359,7 @@ static int sh_mmcif_probe(struct platform_device *pdev) ...@@ -1357,7 +1359,7 @@ static int sh_mmcif_probe(struct platform_device *pdev)
mmc->ops = &sh_mmcif_ops; mmc->ops = &sh_mmcif_ops;
sh_mmcif_init_ocr(host); sh_mmcif_init_ocr(host);
mmc->caps = MMC_CAP_MMC_HIGHSPEED; mmc->caps = MMC_CAP_MMC_HIGHSPEED | MMC_CAP_WAIT_WHILE_BUSY;
if (pd && pd->caps) if (pd && pd->caps)
mmc->caps |= pd->caps; mmc->caps |= pd->caps;
mmc->max_segs = 32; mmc->max_segs = 32;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment