[MMC] Convert all hosts except mmci to use data->blksz
The MMC specification allows non-power of two block sizes. As such, we should not pass the log2 block size to host drivers, but instead pass the byte size. However, ARM MMCI can only work with log2 block size, so continue to pass both the log2 block size and byte block size. This means that for the moment, the byte block size must remain a power of two, but this is the first stage of removing this restriction for other hosts. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
committed by
Russell King
parent
12223dabc6
commit
a3fd4a1b9c
@@ -411,7 +411,7 @@ static unsigned int at91_mci_send_command(struct at91mci_host *host, struct mmc_
|
||||
}
|
||||
|
||||
if (data) {
|
||||
block_length = 1 << data->blksz_bits;
|
||||
block_length = data->blksz;
|
||||
blocks = data->blocks;
|
||||
|
||||
/* always set data start - also set direction flag for read */
|
||||
|
Reference in New Issue
Block a user