Re: [PATCH] mmc_spi: use EILSEQ for possible transmission errors

From: Wolfgang Mües
Date: Mon May 25 2009 - 06:18:40 EST


Am Montag, 25. Mai 2009 schrieb David Brownell:
> It can't. But when the card controller knows that for example
> certain logical blocks are not holding data, it can use that
> for wear leveling ... it's got more physical blocks to use to
> even out the writes, as well as having any records it kept on
> writes, reads, and erasures.

OK. So the block layer is issuing erase commands for all sectors which get
unused, to let the mmc/sd card controller know that these areas are unused.

Are these erase commands requests (as reads and writes)? I suppose...

So if this code gets integrated, we can do:

if (command is erase)
accept erase response codes
treat erase response codes as transmission errors

Should be no problem...

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
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
Please read the FAQ at