Re: [PATCH 7/7] mmc_spi: support for non-byte-aligned cards

From: Wolfgang Mües
Date: Wed Mar 11 2009 - 10:35:23 EST


Will,

Am Mittwoch, 11. März 2009 schrieb Will Newton:
> <wolfgang.mues@xxxxxxxxxxxx> wrote:
> > From: Wolfgang Muees <wolfgang.mues@xxxxxxxxxxxx>
> >
> > o A very large subset of SD cards in the market send their
> >  responses and data non-byte-aligned. So add logic to the
> >  mmc spi driver to handle this mess.
>
> Are you sure about this?

Yes.

> Do you have any further references for this
> or examples of cards that exhibit this problem?

Kingston. The 1 GByte SD card, and a 128 MByte microSD card. I have got some
reports from other mmc spi users with the same problem.

The SD protocoll ist NOT byte-aligned. Messages are starting with a
leading "0" bit. I think some chip vendors have adapted the SPI mode from SD
mode and forgotten to do propper byte alignment.

> Are you sure your SPI host controller is operating correctly?

Yes. My logic probe gives the same results as my spi host controller.
For some cards, you can see the bit offset is getting larger if the
controller on the SD card is getting more and more busy...

best regards
 
i. A. Wolfgang Mües
--
Auerswald GmbH & Co. KG
Hardware Development
Telefon: +49 (0)5306 9219 0
Telefax: +49 (0)5306 9219 94
E-Mail: Wolfgang.Mues@xxxxxxxxxxxx
Web: http://www.auerswald.de
 
--------------------------------------------------------------
Auerswald GmbH & Co. KG, Vor den Grashöfen 1, 38162 Cremlingen
Registriert beim AG Braunschweig HRA 13289
p.h.G Auerswald Geschäftsführungsges. mbH
Registriert beim AG Braunschweig HRB 7463
Geschäftsführer: Dipl-Ing. Gerhard Auerswald
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/