From: "Marek Vašut" <marek.vasut@gmail.com>
To: linux-omap-open-source@linux.omap.com
Subject: [PATCH] OMAP MMC fixes
Date: Sat, 28 Oct 2006 20:34:05 +0200 [thread overview]
Message-ID: <200610282034.05218.marek.vasut@gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2006-10-28 18:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-28 18:34 Marek Vašut [this message]
2006-10-28 18:40 ` [PATCH] OMAP MMC fixes Marek Vašut
2006-10-29 19:32 ` Dirk Behme
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200610282034.05218.marek.vasut@gmail.com \
--to=marek.vasut@gmail.com \
--cc=linux-omap-open-source@linux.omap.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.