[PATCH] mmc: core: Quirk for long data read time

2011-11-03 Thread Stefan Nilsson XK
for certain Micron cards known to have this problem. Signed-off-by: Stefan Nilsson XK stefan.xk.nils...@stericsson.com Signed-off-by: Ulf Hansson ulf.hans...@stericsson.com --- drivers/mmc/card/block.c |7 +++ drivers/mmc/core/core.c | 12 include/linux/mmc/card.h |6

[PATCH] mmc: mmci: Fix PIO read for small SDIO packets

2011-10-26 Thread Stefan Nilsson XK
Corrects a bug in MMCI host driver which silently causes small reads ( 4 bytes as only used in SDIO) from PL-18X to fail. Signed-off-by: Stefan Nilsson XK stefan.xk.nils...@stericsson.com Signed-off-by: Ulf Hansson ulf.hans...@stericsson.com Acked-by: Linus Walleij linus.wall...@linaro.org

[PATCH] mmc: sdio: Fix to support any block size optimally

2011-10-26 Thread Stefan Nilsson XK
with a number of byte transfers. When doing this change it was also possible to break out the quirk for broken byte mode in a much cleaner way, and collect the logic of when to do byte or block transfer in one function instead of two. Signed-off-by: Stefan Nilsson XK stefan.xk.nils

Re: [PATCH 1/4] mmc: mmci: Bugfix in pio read for small packets

2011-10-14 Thread Stefan Nilsson XK
On 10/07/2011 09:11 PM, Russell King - ARM Linux wrote: But first, you need to fix your code so you're only reading 32-bit quantities from the FIFO register. Hi Russel, what to you think of doing it this way instead: /* * SDIO especially may want to send

Re: [PATCH 1/4] mmc: mmci: Bugfix in pio read for small packets

2011-10-03 Thread Stefan Nilsson XK
Hi Russel, On 10/01/2011 06:09 PM, Russell King - ARM Linux wrote: Does this even work? From the MMCI spec, I see no way for the MMCI peripheral to know the size of the read/write on the APB bus. The APB bus signals the MMCI uses are: PCLK - APB bus clock PRESETn - APB bus reset PADDR[11:2]

Re: [PATCH 4/4] mmc: mmci: Fix incorrect handling of HW flow control for SDIO

2011-10-03 Thread Stefan Nilsson XK
Hi Russel, On 10/01/2011 06:12 PM, Russell King - ARM Linux wrote: Shouldn't this also re-enable the ST hardware flow control for non-SDIO cards? I do not think that is needed. Hardware flow control is turned on per default for all cards thanks to the .clkreg member of the variant struct:

Re: [PATCH] mmc: core: Set correct bus mode before card init

2011-09-16 Thread Stefan Nilsson XK
Hi Aaron, On 09/16/2011 04:05 AM, Aaron Lu wrote: Hi Ulf, I'm not familiar with mmc, but I've some questions on sd below. On Thu, Sep 15, 2011 at 05:50:38PM +0200, Ulf Hansson wrote: Earlier all cards where initiated with bus mode set as OPENDRAIN, and then later switched to PUSHPULL.