dect
/
linux-2.6
Archived
13
0
Fork 0

mmc: at91_mci: disable handling of blocks with size not multiple of 4 bytes

This kind of transfer is not supported, so don't advertise it and make it
fail early.

Signed-off-by: Marc Pignat <marc.pignat@hevs.ch>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
This commit is contained in:
Marc Pignat 2007-08-09 13:56:29 +02:00 committed by Pierre Ossman
parent 8fdd8521dc
commit 1d4de9edd6
1 changed files with 8 additions and 0 deletions

View File

@ -428,6 +428,14 @@ static void at91_mci_send_command(struct at91mci_host *host, struct mmc_command
}
if (data) {
if ( data->blksz & 0x3 ) {
pr_debug("Unsupported block size\n");
cmd->error = -EINVAL;
mmc_request_done(host->mmc, host->request);
return;
}
block_length = data->blksz;
blocks = data->blocks;