public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Chris Ball <cjb@laptop.org>
Cc: Philip Rakity <prakity@marvell.com>,
	Aries Lee <arieslee@jmicron.com>,
	zhangfei gao <zhangfei.gao@gmail.com>,
	wuqm@marvell.com, linux-mmc@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH] mmc: Enable bus-width tests on SDHCI host
Date: Wed, 15 Dec 2010 14:17:27 +0100	[thread overview]
Message-ID: <s5h7hfbnpjs.wl%tiwai@suse.de> (raw)
In-Reply-To: s5hfwtzbj8v.wl%tiwai@suse.de

Let's enable the new bus-width tests on SDHCI hosts unless 1-bit data
is set forcibly.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---

This is a patch to be applied after
  "mmc: Test bus-width for old MMC devices (v2)"


 drivers/mmc/host/sdhci.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 0502738..51f5209 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -1888,8 +1888,10 @@ int sdhci_add_host(struct sdhci_host *host)
 	 * their platform code before calling sdhci_add_host(), and we
 	 * won't assume 8-bit width for hosts without that CAP.
 	 */
-	if (!(host->quirks & SDHCI_QUIRK_FORCE_1_BIT_DATA))
+	if (!(host->quirks & SDHCI_QUIRK_FORCE_1_BIT_DATA)) {
 		mmc->caps |= MMC_CAP_4_BIT_DATA;
+		mmc->caps |= MMC_CAP_BUS_WIDTH_TEST;
+	}
 
 	if (caps & SDHCI_CAN_DO_HISPD)
 		mmc->caps |= MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED;
-- 
1.7.3.1


  reply	other threads:[~2010-12-15 13:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-15  7:14 [PATCH] mmc: Test bus-width for old MMC devices (v2) Takashi Iwai
2010-12-15 13:17 ` Takashi Iwai [this message]
2010-12-15 19:40   ` [PATCH] mmc: Enable bus-width tests on SDHCI host Takashi Iwai
2010-12-16 16:54     ` [PATCH] mmc/sdhci: Enable bus-width test for JMicron controllers Takashi Iwai
2010-12-17  3:58       ` Chris Ball
2010-12-16 23:40 ` [PATCH] mmc: Test bus-width for old MMC devices (v2) Chris Ball
2010-12-17  2:33   ` Philip Rakity
2010-12-17  3:43     ` Chris Ball
2010-12-17  8:11       ` Takashi Iwai
2010-12-21 10:59         ` zhangfei gao
2010-12-21 16:36           ` Philip Rakity
2010-12-21 19:35             ` Philip Rakity
2010-12-22  3:56             ` zhangfei gao
2010-12-22  8:59               ` Takashi Iwai
2010-12-28  8:27                 ` zhangfei gao
2011-01-02 19:52                 ` Chris Ball

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5h7hfbnpjs.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=arieslee@jmicron.com \
    --cc=cjb@laptop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=prakity@marvell.com \
    --cc=wuqm@marvell.com \
    --cc=zhangfei.gao@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox