From: <r66093@freescale.com>
To: linux-mmc@vger.kernel.org
Cc: Jerry Huang <Chang-Ming.Huang@freescale.com>,
Gao Guanhua <B22826@freescale.com>, Chris Ball <cjb@laptop.org>
Subject: [PATCH 1/4 v3] ESDHC: add PIO mode support
Date: Mon, 16 Jan 2012 14:13:03 +0800 [thread overview]
Message-ID: <1326694386-28820-2-git-send-email-r66093@freescale.com> (raw)
In-Reply-To: <1326694386-28820-1-git-send-email-r66093@freescale.com>
From: Jerry Huang <Chang-Ming.Huang@freescale.com>
For some FSL ESDHC controller(e.g. P2020E, Rev1.0), the SDHC can not work on
DMA mode because of the hardware bug, so we set a broken dma flag and use
PIO mode.
Signed-off-by: Gao Guanhua <B22826@freescale.com>
Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
CC: Chris Ball <cjb@laptop.org>
Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
---
changes for v2:
- change the property to compatible for quirks
changes for v3:
- add the Acked-by
drivers/mmc/host/sdhci-pltfm.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
index 03970bc..67b9ab0 100644
--- a/drivers/mmc/host/sdhci-pltfm.c
+++ b/drivers/mmc/host/sdhci-pltfm.c
@@ -2,7 +2,7 @@
* sdhci-pltfm.c Support for SDHCI platform devices
* Copyright (c) 2009 Intel Corporation
*
- * Copyright (c) 2007 Freescale Semiconductor, Inc.
+ * Copyright (c) 2007, 2011 Freescale Semiconductor, Inc.
* Copyright (c) 2009 MontaVista Software, Inc.
*
* Authors: Xiaobo Xie <X.Xie@freescale.com>
@@ -71,6 +71,9 @@ void sdhci_get_of_property(struct platform_device *pdev)
if (sdhci_of_wp_inverted(np))
host->quirks |= SDHCI_QUIRK_INVERTED_WRITE_PROTECT;
+ if (of_device_is_compatible(np, "fsl,p2020-rev1-esdhc"))
+ host->quirks |= SDHCI_QUIRK_BROKEN_DMA;
+
clk = of_get_property(np, "clock-frequency", &size);
if (clk && size == sizeof(*clk) && *clk)
pltfm_host->clock = be32_to_cpup(clk);
--
1.7.5.4
next prev parent reply other threads:[~2012-01-16 6:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-16 6:13 [PATCH 0/4] new version workaround for FSL's eSDHC controller r66093
2012-01-16 6:13 ` r66093 [this message]
2012-01-16 6:13 ` [PATCH 2/4 v3] ESDHC: set the timeout to the max value r66093
2012-01-16 6:13 ` [PATCH 3/4 v5] ESDHC: Power management for ESDHC r66093
2012-01-16 6:13 ` [PATCH 4/4 v5] ESDHC: Workaround for data crc error on p1010rdb r66093
2012-02-04 22:22 ` Chris Ball
2012-02-07 8:03 ` Huang Changming-R66093
2012-02-08 3:34 ` Huang Changming-R66093
2012-02-05 1:18 ` [PATCH 0/4] new version workaround for FSL's eSDHC controller 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=1326694386-28820-2-git-send-email-r66093@freescale.com \
--to=r66093@freescale.com \
--cc=B22826@freescale.com \
--cc=Chang-Ming.Huang@freescale.com \
--cc=cjb@laptop.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;
as well as URLs for NNTP newsgroup(s).