projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81ab570
)
mmc: pxamci: set proper block capabilities according to PXA flavor
author
Nicolas Pitre
<nico@cam.org>
Mon, 24 Sep 2007 19:47:18 +0000
(15:47 -0400)
committer
Pierre Ossman
<drzeus@drzeus.cx>
Tue, 25 Sep 2007 17:03:31 +0000
(19:03 +0200)
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>
drivers/mmc/host/pxamci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/host/pxamci.c
b/drivers/mmc/host/pxamci.c
index 03d162881159cf39e7e26eefeca03334bfe7e5df..67acc6a0089524af3e6a4fa8f02026015e891513 100644
(file)
--- a/
drivers/mmc/host/pxamci.c
+++ b/
drivers/mmc/host/pxamci.c
@@
-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.