public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAP MMC fixes
@ 2006-10-28 18:34 Marek Vašut
  2006-10-28 18:40 ` Marek Vašut
  0 siblings, 1 reply; 3+ messages in thread
From: Marek Vašut @ 2006-10-28 18:34 UTC (permalink / raw)
  To: linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 175 bytes --]

Hi,
omap mmc driver doesnt use data->blksz_bits anymore in 2619. It uses only 
data->blksz . Enclosed patch fixes it.

Signed-off-by: Marek Vašut <marek.vasut@gmail.com>

[-- Attachment #2: omap-mmc-blksz-fix.patch --]
[-- Type: text/x-diff, Size: 691 bytes --]

--- linux-omap-dev/drivers/mmc/omap.c	2006-10-28 01:37:40.000000000 +0200
+++ linux-omap/drivers/mmc/omap.c	2006-10-28 20:20:11.000000000 +0200
@@ -633,10 +633,10 @@
 	int sync_dev = 0;
 
 	data_addr = host->phys_base + OMAP_MMC_REG_DATA;
-	frame = 1 << data->blksz_bits;
+	frame = 1 << data->blksz;
 	count = sg_dma_len(sg);
 
-	if ((data->blocks == 1) && (count > (1 << data->blksz_bits)))
+	if ((data->blocks == 1) && (count > (1 << data->blksz)))
 		count = frame;
 
 	host->dma_len = count;
@@ -825,7 +825,7 @@
 	}
 
 
-	block_size = 1 << data->blksz_bits;
+	block_size = 1 << data->blksz;
 
 	OMAP_MMC_WRITE(host, NBLK, data->blocks - 1);
 	OMAP_MMC_WRITE(host, BLEN, block_size - 1);

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-10-29 19:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-28 18:34 [PATCH] OMAP MMC fixes Marek Vašut
2006-10-28 18:40 ` Marek Vašut
2006-10-29 19:32   ` Dirk Behme

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox