From: "Eugene Ilkov" <e.ilkov@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: 2.6.20 mmc: problem with highspeed SD card
Date: Wed, 14 Feb 2007 04:46:41 +0300 [thread overview]
Message-ID: <e13597370702131746q6a5d8e79i2341f5eb9c59bf6e@mail.gmail.com> (raw)
I have I/O errors with Transcend SD highspeed card 2GB/150x when it's
mounted in r/w mode (cardreader on sharp sl-c1000)
It works well if I reverse mmcv4 patch commited to 2.6.19-git2
(http://lkml.org/lkml/2006/10/4/27)
I'm not experienced in mmc, but I figured out that problem is
somewhere in mmc_read_switch_caps() and when i change cmd.arg value
from 0x80FFFFF1 to 0x00FFFFF1 it works fine too
What argument should have SD_SWITCH opcode?
--- linux-2.6.20/drivers/mmc/mmc.c 2007-02-14 04:13:23.644408219 +0300
+++ linux-2.6.20.g/drivers/mmc/mmc.c 2007-02-14 04:19:09.642624022 +0300
@@ -1225,7 +1225,7 @@
memset(&cmd, 0, sizeof(struct mmc_command));
cmd.opcode = SD_SWITCH;
- cmd.arg = 0x80FFFFF1;
+ cmd.arg = 0x00FFFFF1;
cmd.flags = MMC_RSP_R1 | MMC_CMD_ADTC;
memset(&data, 0, sizeof(struct mmc_data));
next reply other threads:[~2007-02-14 1:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-14 1:46 Eugene Ilkov [this message]
2007-02-15 5:48 ` Pierre Ossman
2007-02-15 12:17 ` Eugene Ilkov
2007-02-15 16:39 ` Pierre Ossman
2007-02-15 16:52 ` Pierre Ossman
2007-02-15 17:08 ` Pierre Ossman
2007-02-15 22:44 ` Eugene Ilkov
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=e13597370702131746q6a5d8e79i2341f5eb9c59bf6e@mail.gmail.com \
--to=e.ilkov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®