All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: host: don't access at boot partition when mode is HS200/HS400.
@ 2014-08-13  4:46 Jaehoon Chung
  2014-08-13 13:27 ` Alex Lemberg
  0 siblings, 1 reply; 3+ messages in thread
From: Jaehoon Chung @ 2014-08-13  4:46 UTC (permalink / raw)
  To: linux-mmc; +Cc: Chris Ball, Ulf Hansson, Jaehoon Chung

HS200/HS400 mode is not supported during boot operation.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---
 include/linux/mmc/host.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index 7960424..ce5db96 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -445,6 +445,10 @@ static inline int mmc_host_cmd23(struct mmc_host *host)
 
 static inline int mmc_boot_partition_access(struct mmc_host *host)
 {
+	/* HS200 & HS400 mode is not supported during boot operation */
+	if (host->caps2 & (MMC_CAP2_HS200 | MMC_CAP2_HS400))
+		return 0;
+
 	return !(host->caps2 & MMC_CAP2_BOOTPART_NOACC);
 }
 
-- 
1.7.9.5


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

end of thread, other threads:[~2014-08-13 13:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-13  4:46 [PATCH] mmc: host: don't access at boot partition when mode is HS200/HS400 Jaehoon Chung
2014-08-13 13:27 ` Alex Lemberg
2014-08-13 13:36   ` 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.