* [U-Boot] [PATCH] i.MX28: Lower the amount of blocks transfered in one DMA cycle
@ 2012-04-09 4:50 Marek Vasut
2012-04-09 13:06 ` Fabio Estevam
0 siblings, 1 reply; 3+ messages in thread
From: Marek Vasut @ 2012-04-09 4:50 UTC (permalink / raw)
To: u-boot
Some MMC cards, like my ancient 32.0MB SanDisk RS-MMC cards had issue if b_max
was set to 0x40 and DMA was enabled. Lower this value to 0x20, which allows
these cards to work too.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
---
drivers/mmc/mxsmmc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
NOTE: I need to do more tests on other obscure cards tomorrow.
diff --git a/drivers/mmc/mxsmmc.c b/drivers/mmc/mxsmmc.c
index 35c6bda..6572e95 100644
--- a/drivers/mmc/mxsmmc.c
+++ b/drivers/mmc/mxsmmc.c
@@ -406,7 +406,7 @@ int mxsmmc_initialize(bd_t *bis, int id, int (*wp)(int))
*/
mmc->f_min = 400000;
mmc->f_max = mxc_get_clock(MXC_SSP0_CLK + id) * 1000 / 2;
- mmc->b_max = 0x40;
+ mmc->b_max = 0x20;
mmc_register(mmc);
return 0;
--
1.7.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] i.MX28: Lower the amount of blocks transfered in one DMA cycle
2012-04-09 4:50 [U-Boot] [PATCH] i.MX28: Lower the amount of blocks transfered in one DMA cycle Marek Vasut
@ 2012-04-09 13:06 ` Fabio Estevam
2012-04-09 19:02 ` Marek Vasut
0 siblings, 1 reply; 3+ messages in thread
From: Fabio Estevam @ 2012-04-09 13:06 UTC (permalink / raw)
To: u-boot
Hi Marek,
On 4/9/12, Marek Vasut <marex@denx.de> wrote:
> Some MMC cards, like my ancient 32.0MB SanDisk RS-MMC cards had issue if
> b_max
> was set to 0x40 and DMA was enabled. Lower this value to 0x20, which allows
> these cards to work too.
I know this is off topic here, but I am wondering whether the mxs mmc
driver in the kernel is able to handle this card correctly or not.
Regards,
Fabio Estevam
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] i.MX28: Lower the amount of blocks transfered in one DMA cycle
2012-04-09 13:06 ` Fabio Estevam
@ 2012-04-09 19:02 ` Marek Vasut
0 siblings, 0 replies; 3+ messages in thread
From: Marek Vasut @ 2012-04-09 19:02 UTC (permalink / raw)
To: u-boot
Dear Fabio Estevam,
> Hi Marek,
>
> On 4/9/12, Marek Vasut <marex@denx.de> wrote:
> > Some MMC cards, like my ancient 32.0MB SanDisk RS-MMC cards had issue if
> > b_max
> > was set to 0x40 and DMA was enabled. Lower this value to 0x20, which
> > allows these cards to work too.
>
> I know this is off topic here, but I am wondering whether the mxs mmc
> driver in the kernel is able to handle this card correctly or not.
Linux does, but I think there must be some limit to multiblock transfers there,
otherwise it'd fail too.
> Regards,
>
> Fabio Estevam
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-09 19:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-09 4:50 [U-Boot] [PATCH] i.MX28: Lower the amount of blocks transfered in one DMA cycle Marek Vasut
2012-04-09 13:06 ` Fabio Estevam
2012-04-09 19:02 ` Marek Vasut
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox