提交 1d4de9ed 编写于 作者: M Marc Pignat 提交者: Pierre Ossman

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: NMarc Pignat <marc.pignat@hevs.ch>
Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
上级 8fdd8521
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册