Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149454
b: refs/heads/master
c: 5cf20aa
h: refs/heads/master
v: v3
  • Loading branch information
Wolfgang Muees authored and Pierre Ossman committed Jun 13, 2009
1 parent 8c58326 commit f37588f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 94d89efb2c347a82a08a61dbac8565b1087c3259
refs/heads/master: 5cf20aa557e8f9dd5af302b8f33972082479753a
12 changes: 12 additions & 0 deletions trunk/drivers/mmc/host/mmc_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@
*/
#define r1b_timeout (HZ * 3)

/* One of the critical speed parameters is the amount of data which may
* be transfered in one command. If this value is too low, the SD card
* controller has to do multiple partial block writes (argggh!). With
* today (2008) SD cards there is little speed gain if we transfer more
* than 64 KBytes at a time. So use this value until there is any indication
* that we should do more here.
*/
#define MMC_SPI_BLOCKSATONCE 128

/****************************************************************************/

Expand Down Expand Up @@ -1366,6 +1374,10 @@ static int mmc_spi_probe(struct spi_device *spi)

mmc->ops = &mmc_spi_ops;
mmc->max_blk_size = MMC_SPI_BLOCKSIZE;
mmc->max_hw_segs = MMC_SPI_BLOCKSATONCE;
mmc->max_phys_segs = MMC_SPI_BLOCKSATONCE;
mmc->max_req_size = MMC_SPI_BLOCKSATONCE * MMC_SPI_BLOCKSIZE;
mmc->max_blk_count = MMC_SPI_BLOCKSATONCE;

mmc->caps = MMC_CAP_SPI;

Expand Down

0 comments on commit f37588f

Please sign in to comment.