]> err.no Git - linux-2.6/commit
sdio: set the functions' block size
authorDavid Vrabel <david.vrabel@csr.com>
Wed, 8 Aug 2007 13:23:48 +0000 (14:23 +0100)
committerPierre Ossman <drzeus@drzeus.cx>
Sun, 23 Sep 2007 19:19:26 +0000 (21:19 +0200)
commit9a08f82b3cc522f727ace580a2aaee5402435bc8
tree81818bba503a469184883b0ea8c436b9ce97aa0f
parent7616ee95f27a04fd5a6434e9ef4a82cec4b2807c
sdio: set the functions' block size

Before a driver is probed, set the function's block size to the default so the
driver is sure the block size is something sensible and it needn't explicitly
set it.

The default block size is the largest that's supported by both the card and
the host, with a maximum of 512 to ensure aribitrarily sized transfer use the
optimal (least) number of commands.

See http://lkml.org/lkml/2007/8/7/150 for reasons for the block size choice.

Signed-off-by: David Vrabel <david.vrabel@csr.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/core/sdio_bus.c
drivers/mmc/core/sdio_cis.c
drivers/mmc/core/sdio_io.c
include/linux/mmc/sdio_func.h