From: Kyungmin Park <kyungmin.park@samsung.com>
To: linux-mmc@vger.kernel.org, akpm@linux-foundation.org
Subject: [PATCH 2/3] SDHCI: Don't assign mmc->caps at SDHCI directly
Date: Sat, 12 Jun 2010 14:44:50 +0900 [thread overview]
Message-ID: <20100612054450.GA25682@july> (raw)
From: Kyungmin Park <kyungmin.park@samsung.com>
Some host controller can set mmc->caps before sdhci_add_host.
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
drivers/mmc/host/sdhci.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 4321e0c..142419c 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -1791,7 +1791,7 @@ int sdhci_add_host(struct sdhci_host *host)
else
mmc->f_min = host->max_clk / 256;
mmc->f_max = host->max_clk;
- mmc->caps = MMC_CAP_SDIO_IRQ;
+ mmc->caps |= MMC_CAP_SDIO_IRQ;
if (!(host->quirks & SDHCI_QUIRK_FORCE_1_BIT_DATA))
mmc->caps |= MMC_CAP_4_BIT_DATA;
--
1.5.3.3
next reply other threads:[~2010-06-12 5:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-12 5:44 Kyungmin Park [this message]
2010-06-28 18:34 ` [PATCH 2/3] SDHCI: Don't assign mmc->caps at SDHCI directly Andrew Morton
2010-06-28 19:35 ` Grant Likely
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=20100612054450.GA25682@july \
--to=kyungmin.park@samsung.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mmc@vger.kernel.org \
/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