* Re: [PATCH] esdhc: fix DMA_MASK to not break mx25 DMA access
[not found] ` <20120716214711.GX30009@pengutronix.de>
@ 2012-07-17 16:32 ` Wilson & Cassie
2012-07-19 6:51 ` Chris Ball
2012-07-22 20:47 ` Chris Ball
0 siblings, 2 replies; 3+ messages in thread
From: Wilson & Cassie @ 2012-07-17 16:32 UTC (permalink / raw)
To: Chris Ball; +Cc: linux-mmc, Sascha Hauer
Patch to not set reserved bits in i.MX25 PROCTL register. DMA stops working if those bits get set.
Signed-off-by: Wilson Callan <wilson.callan at savantsystems.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
--- linux-3.4.4/drivers/mmc/host/sdhci-esdhc-imx.c.orig 2012-07-04 13:58:16.239979741 -0400
+++ linux-3.4.4/drivers/mmc/host/sdhci-esdhc-imx.c 2012-07-04 14:34:38.939949292 -0400
@@ -310,8 +310,10 @@ static void esdhc_writeb_le(struct sdhci
SDHCI_CTRL_D3CD);
/* ensure the endianess */
new_val |= ESDHC_HOST_CONTROL_LE;
- /* DMA mode bits are shifted */
- new_val |= (val & SDHCI_CTRL_DMA_MASK) << 5;
+ if (!is_imx25_esdhc(imx_data)) { // bits 8&9 are reserved on mx25
+ /* DMA mode bits are shifted */
+ new_val |= (val & SDHCI_CTRL_DMA_MASK) << 5;
+ }
esdhc_clrset_le(host, 0xffff, new_val, reg);
return;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] esdhc: fix DMA_MASK to not break mx25 DMA access
2012-07-17 16:32 ` [PATCH] esdhc: fix DMA_MASK to not break mx25 DMA access Wilson & Cassie
@ 2012-07-19 6:51 ` Chris Ball
2012-07-22 20:47 ` Chris Ball
1 sibling, 0 replies; 3+ messages in thread
From: Chris Ball @ 2012-07-19 6:51 UTC (permalink / raw)
To: Wilson & Cassie; +Cc: linux-mmc, Sascha Hauer, wilson.callan
Hi,
On Tue, Jul 17 2012, Wilson & Cassie wrote:
> Patch to not set reserved bits in i.MX25 PROCTL register. DMA stops working if those bits get set.
>
> Signed-off-by: Wilson Callan <wilson.callan at savantsystems.com>
> Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
>
> --- linux-3.4.4/drivers/mmc/host/sdhci-esdhc-imx.c.orig 2012-07-04 13:58:16.239979741 -0400
> +++ linux-3.4.4/drivers/mmc/host/sdhci-esdhc-imx.c 2012-07-04 14:34:38.939949292 -0400
> @@ -310,8 +310,10 @@ static void esdhc_writeb_le(struct sdhci
> SDHCI_CTRL_D3CD);
> /* ensure the endianess */
> new_val |= ESDHC_HOST_CONTROL_LE;
> - /* DMA mode bits are shifted */
> - new_val |= (val & SDHCI_CTRL_DMA_MASK) << 5;
> + if (!is_imx25_esdhc(imx_data)) { // bits 8&9 are reserved on mx25
> + /* DMA mode bits are shifted */
> + new_val |= (val & SDHCI_CTRL_DMA_MASK) << 5;
> + }
>
> esdhc_clrset_le(host, 0xffff, new_val, reg);
> return;
Thanks, pushed to mmc-next for 3.6.
- Chris.
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] esdhc: fix DMA_MASK to not break mx25 DMA access
2012-07-17 16:32 ` [PATCH] esdhc: fix DMA_MASK to not break mx25 DMA access Wilson & Cassie
2012-07-19 6:51 ` Chris Ball
@ 2012-07-22 20:47 ` Chris Ball
1 sibling, 0 replies; 3+ messages in thread
From: Chris Ball @ 2012-07-22 20:47 UTC (permalink / raw)
To: Wilson & Cassie; +Cc: linux-mmc, Sascha Hauer
Hi Wilson and Sascha,
On Tue, Jul 17 2012, Wilson & Cassie wrote:
> Patch to not set reserved bits in i.MX25 PROCTL register. DMA stops working if those bits get set.
>
> Signed-off-by: Wilson Callan <wilson.callan at savantsystems.com>
> Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
>
> --- linux-3.4.4/drivers/mmc/host/sdhci-esdhc-imx.c.orig 2012-07-04 13:58:16.239979741 -0400
> +++ linux-3.4.4/drivers/mmc/host/sdhci-esdhc-imx.c 2012-07-04 14:34:38.939949292 -0400
> @@ -310,8 +310,10 @@ static void esdhc_writeb_le(struct sdhci
> SDHCI_CTRL_D3CD);
> /* ensure the endianess */
> new_val |= ESDHC_HOST_CONTROL_LE;
> - /* DMA mode bits are shifted */
> - new_val |= (val & SDHCI_CTRL_DMA_MASK) << 5;
> + if (!is_imx25_esdhc(imx_data)) { // bits 8&9 are reserved on mx25
> + /* DMA mode bits are shifted */
> + new_val |= (val & SDHCI_CTRL_DMA_MASK) << 5;
> + }
>
> esdhc_clrset_le(host, 0xffff, new_val, reg);
> return;
This patch broke the imx build. Please test patches before submitting them.
CC drivers/mmc/host/sdhci-esdhc-imx.o
/home/cjb/git/mmc/drivers/mmc/host/sdhci-esdhc-imx.c: In function ‘esdhc_writeb_le’:
/home/cjb/git/mmc/drivers/mmc/host/sdhci-esdhc-imx.c:319:23: error: ‘imx_data’ undeclared (first use in this function)
Fixed by:
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-i
index 6175577..e23f813 100644
--- a/drivers/mmc/host/sdhci-esdhc-imx.c
+++ b/drivers/mmc/host/sdhci-esdhc-imx.c
@@ -299,6 +299,8 @@ static void esdhc_writew_le(struct sdhci_host *host, u16 val
static void esdhc_writeb_le(struct sdhci_host *host, u8 val, int reg)
{
+ struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
+ struct pltfm_imx_data *imx_data = pltfm_host->priv;
u32 new_val;
switch (reg) {
And pushed out to mmc-next as part of the original patch.
- Chris.
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-07-22 20:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <AF702D0F-8919-4E98-BD6C-DF05E0EE4DDE@savantav.com>
[not found] ` <3DC84FDD-7D96-46D6-A9F2-C3F8A47E9051@comcast.net>
[not found] ` <20120716214711.GX30009@pengutronix.de>
2012-07-17 16:32 ` [PATCH] esdhc: fix DMA_MASK to not break mx25 DMA access Wilson & Cassie
2012-07-19 6:51 ` Chris Ball
2012-07-22 20:47 ` Chris Ball
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox