From: Marek Vasut <marek.vasut@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] SD card fix
Date: Thu, 3 Jul 2008 03:44:31 +0200 [thread overview]
Message-ID: <200807030344.31234.marek.vasut@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 420 bytes --]
Hi,
while I was tinkering with palmtx and preparing it for mainline, I noticed,
that certain SD cards doesnt work (both Kingston - made by Toshiba).
I came across this
http://kerneltrap.org/mailarchive/linux-kernel/2007/9/28/325179
The person there had the same problem.
The attached patch fixed it for me, but this solution isnt definitelly
correct. Though it should point out what's the actual problem very well.
[-- Attachment #2: toshicard.patch --]
[-- Type: text/x-diff, Size: 923 bytes --]
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h
index 0d508ac..ce7828e 100644
--- a/include/linux/mmc/card.h
+++ b/include/linux/mmc/card.h
@@ -85,7 +85,6 @@ struct mmc_card {
struct mmc_host *host; /* the host this device belongs to */
struct device dev; /* the device */
unsigned int rca; /* relative card address of device */
- unsigned int type; /* card type */
#define MMC_TYPE_MMC 0 /* MMC card */
#define MMC_TYPE_SD 1 /* SD card */
#define MMC_TYPE_SDIO 2 /* SDIO card */
@@ -98,6 +97,7 @@ struct mmc_card {
u32 raw_cid[4]; /* raw card CID */
u32 raw_csd[4]; /* raw card CSD */
u32 raw_scr[2]; /* raw card SCR */
+ unsigned int type; /* card type */
struct mmc_cid cid; /* card identification */
struct mmc_csd csd; /* card specific */
struct mmc_ext_csd ext_csd; /* mmc v4 extended card specific */
reply other threads:[~2008-07-03 7:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200807030344.31234.marek.vasut@gmail.com \
--to=marek.vasut@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