* SDHCI: mmc0: Unexpected interrupt 0x00008000.
@ 2007-07-19 19:15 Jeremy Fitzhardinge
2007-07-20 16:22 ` Pierre Ossman
0 siblings, 1 reply; 2+ messages in thread
From: Jeremy Fitzhardinge @ 2007-07-19 19:15 UTC (permalink / raw)
To: drzeus-sdhci; +Cc: sdhci-devel, Linux Kernel Mailing List
I'm getting this with current GIT kernels when I plug an SD card into
the side of my machine. It appears to see the filesystem OK anyway, but
for some reason all the hal/gnome desktop stuff isn't seeing it. Was
working last week.
The message is:
mmc0: Unexpected interrupt 0x00008000.
sdhci: ============== REGISTER DUMP ==============
sdhci: Sys addr: 0x2d7d4600 | Version: 0x00000200
sdhci: Blk size: 0x00007200 | Blk cnt: 0x00000000
sdhci: Argument: 0x000001aa | Trn mode: 0x00000033
sdhci: Present: 0x01ff0001 | Host ctl: 0x00000001
sdhci: Power: 0x0000000f | Blk gap: 0x00000000
sdhci: Wake-up: 0x00000000 | Clock: 0x00008007
sdhci: Timeout: 0x00000009 | Int stat: 0x00000000
sdhci: Int enab: 0x00ff00fb | Sig enab: 0x00ff00fb
sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
sdhci: Caps: 0x018021a1 | Max curr: 0x00000040
sdhci: ===========================================
PM: Adding info for mmc:mmc0:b368
mmcblk0: mmc0:b368 LEXAR 999936KiB
mmcblk0: p1
The machine is a Thinkpad X60, and the SD device is:
15:00.2 Generic system peripheral [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 18)
Subsystem: Lenovo Thinkpad X60s
Flags: bus master, medium devsel, latency 64, IRQ 22
Memory at e4301800 (32-bit, non-prefetchable) [size=256]
Capabilities: [80] Power Management version 2
Seems to work OK if I manually mount it. To be honest, I don't know if
this message was always appearing or not; I only checked because it
didn't seem to be working.
J
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: SDHCI: mmc0: Unexpected interrupt 0x00008000.
2007-07-19 19:15 SDHCI: mmc0: Unexpected interrupt 0x00008000 Jeremy Fitzhardinge
@ 2007-07-20 16:22 ` Pierre Ossman
0 siblings, 0 replies; 2+ messages in thread
From: Pierre Ossman @ 2007-07-20 16:22 UTC (permalink / raw)
To: Jeremy Fitzhardinge; +Cc: sdhci-devel, Linux Kernel Mailing List
[-- Attachment #1: Type: text/plain, Size: 605 bytes --]
On Thu, 19 Jul 2007 12:15:34 -0700
Jeremy Fitzhardinge <jeremy@goop.org> wrote:
> I'm getting this with current GIT kernels when I plug an SD card into
> the side of my machine. It appears to see the filesystem OK anyway,
> but for some reason all the hal/gnome desktop stuff isn't seeing it.
> Was working last week.
>
This appeared because we fixed another bug. Try the included patch.
Rgds
--
-- Pierre Ossman
Linux kernel, MMC maintainer http://www.kernel.org
PulseAudio, core developer http://pulseaudio.org
rdesktop, core developer http://www.rdesktop.org
[-- Attachment #2: errmask.patch --]
[-- Type: text/x-patch, Size: 1367 bytes --]
commit 0668da722a0c48e8629d697fa354e23a02548093
Author: Pierre Ossman <drzeus@drzeus.cx>
Date: Fri Jul 20 18:20:36 2007 +0200
sdhci: make sure to clear the error interrupt
The controller has a bit indicating that one of the higher bits (the
error bits) are set. A previous bug caused this bit to be masked, but
since that bug has been fixed we have to clear it explicictly.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 10d15c3..4a24db0 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -1024,6 +1024,8 @@ static irqreturn_t sdhci_irq(int irq, void *dev_id)
intmask &= ~(SDHCI_INT_CMD_MASK | SDHCI_INT_DATA_MASK);
+ intmask &= ~SDHCI_INT_ERROR;
+
if (intmask & SDHCI_INT_BUS_POWER) {
printk(KERN_ERR "%s: Card is consuming too much power!\n",
mmc_hostname(host->mmc));
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
index 7400f4b..a6c8704 100644
--- a/drivers/mmc/host/sdhci.h
+++ b/drivers/mmc/host/sdhci.h
@@ -107,6 +107,7 @@
#define SDHCI_INT_CARD_INSERT 0x00000040
#define SDHCI_INT_CARD_REMOVE 0x00000080
#define SDHCI_INT_CARD_INT 0x00000100
+#define SDHCI_INT_ERROR 0x00008000
#define SDHCI_INT_TIMEOUT 0x00010000
#define SDHCI_INT_CRC 0x00020000
#define SDHCI_INT_END_BIT 0x00040000
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-20 16:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-19 19:15 SDHCI: mmc0: Unexpected interrupt 0x00008000 Jeremy Fitzhardinge
2007-07-20 16:22 ` Pierre Ossman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox