mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
mmc: Allow host drivers to specify a max block size
Most controllers have an upper limit on the block size. Allow the host drivers to specify this and make sure we avoid hitting this limit. Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
This commit is contained in:
parent
dba4accab1
commit
fe4a3c7a20
12 changed files with 44 additions and 12 deletions
|
@ -1099,6 +1099,7 @@ static int __init mmc_omap_probe(struct platform_device *pdev)
|
|||
*/
|
||||
mmc->max_phys_segs = 32;
|
||||
mmc->max_hw_segs = 32;
|
||||
mmc->max_blk_size = 2048; /* BLEN is 11 bits (+1) */
|
||||
mmc->max_sectors = 256; /* NBLK max 11-bits, OMAP also limited by DMA */
|
||||
mmc->max_seg_size = mmc->max_sectors * 512;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue