summaryrefslogtreecommitdiff
path: root/packages/linux/linux-2.6.25/cm-x270/0003-mmcsd_large_cards-r0.patch
diff options
context:
space:
mode:
authorCliff Brake <cbrake@bec-systems.com>2008-05-06 12:26:53 +0000
committerCliff Brake <cbrake@bec-systems.com>2008-05-06 12:26:53 +0000
commit706a6e2b82d1ecab8f3301b2f82b3c491d203dcf (patch)
tree484108bebce78b307a97fd5cf077facb41518fde /packages/linux/linux-2.6.25/cm-x270/0003-mmcsd_large_cards-r0.patch
parent34818d96d3c23bcf0e8736b8349dfa695039d415 (diff)
linux-2.6.25: add cm-x270 support
Diffstat (limited to 'packages/linux/linux-2.6.25/cm-x270/0003-mmcsd_large_cards-r0.patch')
-rw-r--r--packages/linux/linux-2.6.25/cm-x270/0003-mmcsd_large_cards-r0.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/packages/linux/linux-2.6.25/cm-x270/0003-mmcsd_large_cards-r0.patch b/packages/linux/linux-2.6.25/cm-x270/0003-mmcsd_large_cards-r0.patch
new file mode 100644
index 0000000000..f0df086287
--- /dev/null
+++ b/packages/linux/linux-2.6.25/cm-x270/0003-mmcsd_large_cards-r0.patch
@@ -0,0 +1,36 @@
+From b98b85eba9b31d79217b5c6e0aae42a038b033b7 Mon Sep 17 00:00:00 2001
+From: Cliff Brake <cbrake@happy.dev.bec-systems.com>
+Date: Fri, 20 Jul 2007 19:02:55 -0400
+Subject: [PATCH] mmcsd_large_cards-r0
+
+---
+ drivers/mmc/card/block.c | 6 ++++++
+ 1 files changed, 6 insertions(+), 0 deletions(-)
+
+diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
+index 91ded3e..5640c5b 100644
+--- a/drivers/mmc/card/block.c
++++ b/drivers/mmc/card/block.c
+@@ -409,6 +409,7 @@ static struct mmc_blk_data *mmc_blk_alloc(struct mmc_card *card)
+ {
+ struct mmc_blk_data *md;
+ int devidx, ret;
++ unsigned long cap;
+
+ devidx = find_first_zero_bit(dev_use, MMC_NUM_MINORS);
+ if (devidx >= MMC_NUM_MINORS)
+@@ -472,6 +473,11 @@ static struct mmc_blk_data *mmc_blk_alloc(struct mmc_card *card)
+
+ sprintf(md->disk->disk_name, "mmcblk%d", devidx);
+
++ if (card->csd.read_blkbits > 9)
++ md->block_bits = 9;
++ else
++ md->block_bits = card->csd.read_blkbits;
++
+ blk_queue_hardsect_size(md->queue.queue, 1 << md->block_bits);
+
+ if (!mmc_card_sd(card) && mmc_card_blockaddr(card)) {
+--
+1.5.4.rc4
+