All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mmc: dw_mmc: retry to switch voltage when failed
@ 2016-05-04  7:14 Jaehoon Chung
  2016-05-04  7:14 ` [PATCH 2/2] mmc: dw_mmc: prevent to set the wrong value Jaehoon Chung
  2016-05-04 10:41 ` [PATCH 1/2] mmc: dw_mmc: retry to switch voltage when failed Shawn Lin
  0 siblings, 2 replies; 8+ messages in thread
From: Jaehoon Chung @ 2016-05-04  7:14 UTC (permalink / raw)
  To: linux-mmc; +Cc: ulf.hansson, shawn.lin, Jaehoon Chung

If vqmmc is used and failed to switch voltage, then retry to switch
voltage. MMC core is providing the retrying scheame.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---
 drivers/mmc/host/dw_mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 9dd1bd3..28602cc 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -1416,7 +1416,7 @@ static int dw_mci_switch_voltage(struct mmc_host *mmc, struct mmc_ios *ios)
 			dev_dbg(&mmc->class_dev,
 					 "Regulator set error %d - %s V\n",
 					 ret, uhs & v18 ? "1.8" : "3.3");
-			return ret;
+			return -EAGAIN;
 		}
 	}
 	mci_writel(host, UHS_REG, uhs);
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-05-11  2:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-04  7:14 [PATCH 1/2] mmc: dw_mmc: retry to switch voltage when failed Jaehoon Chung
2016-05-04  7:14 ` [PATCH 2/2] mmc: dw_mmc: prevent to set the wrong value Jaehoon Chung
2016-05-04 10:35   ` Shawn Lin
2016-05-10  1:49     ` Jaehoon Chung
2016-05-04 10:41 ` [PATCH 1/2] mmc: dw_mmc: retry to switch voltage when failed Shawn Lin
2016-05-10  1:55   ` Jaehoon Chung
2016-05-10  9:24     ` Shawn Lin
2016-05-11  2:51       ` Jaehoon Chung

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.