Skip to content

Commit

Permalink
mmc: pxamci: set proper block capabilities according to PXA flavor
Browse files Browse the repository at this point in the history
From PXA27x, it is possible to do 2048-byte block transfers.

Signed-off-by: Nicolas Pitre <nico@marvell.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
  • Loading branch information
Nicolas Pitre authored and Pierre Ossman committed Sep 25, 2007
1 parent 81ab570 commit fe2dc44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mmc/host/pxamci.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,9 @@ static int pxamci_probe(struct platform_device *pdev)
mmc->max_seg_size = PAGE_SIZE;

/*
* Block length register is 10 bits.
* Block length register is only 10 bits before PXA27x.
*/
mmc->max_blk_size = 1023;
mmc->max_blk_size = (cpu_is_pxa21x() || cpu_is_pxa25x()) ? 1023 : 2048;

/*
* Block count register is 16 bits.
Expand Down

0 comments on commit fe2dc44

Please sign in to comment.