Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288178
b: refs/heads/master
c: 8f7f6b7
h: refs/heads/master
v: v3
  • Loading branch information
Will Deacon authored and Chris Ball committed Mar 4, 2012
1 parent 993930f commit aca1b1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b6b0ad6e572b32a641116aaa5f897ffebe31e44
refs/heads/master: 8f7f6b7e46117edb83d12a508fffa0f013457677
7 changes: 4 additions & 3 deletions trunk/drivers/mmc/host/mmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1271,12 +1271,13 @@ static int __devinit mmci_probe(struct amba_device *dev,
/*
* Block size can be up to 2048 bytes, but must be a power of two.
*/
mmc->max_blk_size = 2048;
mmc->max_blk_size = 1 << 11;

/*
* No limit on the number of blocks transferred.
* Limit the number of blocks transferred so that we don't overflow
* the maximum request size.
*/
mmc->max_blk_count = mmc->max_req_size;
mmc->max_blk_count = mmc->max_req_size >> 11;

spin_lock_init(&host->lock);

Expand Down

0 comments on commit aca1b1d

Please sign in to comment.