Re: [patch 0/5] [RFC] Add MMC password protection (lock/unlock) support
From: Russell King
Date: Wed Dec 14 2005 - 09:23:15 EST
On Wed, Dec 14, 2005 at 09:29:25AM -0400, Anderson Briglia wrote:
> - Currently, some host drivers assume the block length will always be a power
> of 2. This is not true for the MMC_LOCK_UNLOCK command, which is a block
> command that accepts arbitratry block lengths. We have made the necessary
> changes to the omap.c driver (present on the linux-omap tree), but the same
> needs to be done for other hosts' drivers.
Some MMC hosts require that the data transfer be a multiple of the
block size. Therefore, set blksz_bits to the biggest power of two
which represents the buffer, and use "blocks" to set the length of
the transfer.
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 Serial core
-
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/