Bug 9680
Summary: | sdhci doesn't recognize inserted card - Ricoh R5C592 | ||
---|---|---|---|
Product: | Drivers | Reporter: | Radek Pilar (rpilar) |
Component: | MMC/SD | Assignee: | Pierre Ossman (pierre-bugzilla) |
Status: | REJECTED INVALID | ||
Severity: | normal | ||
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.23.9, 2.6.23.12 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: |
dmesg output after modules reloaded
dmesg output with 2.6.24 kernel and MMC_DEBUG=y dmesg output with 2.6.24.1 kernel, MMC_DEBUG=y and ricoh-mmc loaded dmesg output with 2.6.24.1 kernel, MMC_DEBUG=y and ricoh-mmc loaded (mmcblk0 created, but can't read from it) |
Description
Radek Pilar
2008-01-03 11:54:28 UTC
The fact that it lights up a bit is good news. That means it is trying to communicate with the card, but failing somewhere along the line. What you need to do is to compile your kernel with CONFIG_MMC_DEBUG enabled. Then upload the output of the dmesg command after you've inserted a card. Created attachment 14466 [details]
dmesg output after modules reloaded
Kernel 2.6.23.12 with MMC_DEBUG=y after modules mmc_core and sdhci being unloaded and loaded again. When I insert a card, nothing more will appear in dmesg output.
Created attachment 14575 [details]
dmesg output with 2.6.24 kernel and MMC_DEBUG=y
There is an dmesg output with 2.6.24 kernel... At least, it prints something when card is inserted. There are some comments in this file from me.
Damn these crappy Ricoh components. It's their half-assed Windows-workaround that is causing problems again. So it would seem that ricoh-mmc is a requirement for you to have any chance of getting this thing up and running. Unfortunately it seems that the controller is still misbehaving. Are you getting these problems with all cards? And you go include a complete dmesg for the ricoh-mmc case. Btw, it would also help if you throw off an email at both Lenovo and Ricoh stating that their lack of cooperation is causing real problems for their customers. It seems they need to be dragged kicking and screaming.... Created attachment 14765 [details]
dmesg output with 2.6.24.1 kernel, MMC_DEBUG=y and ricoh-mmc loaded
Well... unfortunately, I can test only this SD card (but in another computer, it works fine) Complete dmesg output is included (now, I've tried reboting several times, but the mmcblk0 device was never created).
And yes, I will write to Lenovo (and Ricoh) when I'll test integrated modem, firewire and express card.
Created attachment 14768 [details]
dmesg output with 2.6.24.1 kernel, MMC_DEBUG=y and ricoh-mmc loaded (mmcblk0 created, but can't read from it)
Suddenly, after I've posted previous attachment, I tried inserting card again, result is in attachment. /dev/mmcblk0 was created, but I can't read from/to it.
In the end of this attachment, there is dmesg output when I try dd if=/dev/mmcblk0. dd will fail after 20 seconds because of input/outptut error with 0 records copied. And for that 20 seconds the led is glowing.
The controller is claiming CRC errors. Do you still have Windows on the machine so that you can verify that it is not a hardware error? The log shows one of the initial transfers succeeding. That transfer is done before switching to wide mode, so perhaps there is some error with just a few of the pins. Try changing this line in sdhci.c: mmc->caps = MMC_CAP_4_BIT_DATA | MMC_CAP_MULTIWRITE | MMC_CAP_SDIO_IRQ; to: mmc->caps = MMC_CAP_MULTIWRITE | MMC_CAP_SDIO_IRQ; Well, I've never had Windows on this machine. But, with yours modification, it works perfectly, Many thanks! Unfortunately that hack was just meant as a quick test and not as a long term solution. I don't want to go disabling a big part of the chip until we've determined that this is not just a hw bug in your machine. I don't suppose this is a work machine so that you might have access to another one for comparison? No, unfortunately I haven't acces to any computer with the same chip. So you suggest get Windows and try the reader there? If you could get Windows on it, that would help. I've never seen this problem with any system before, so the most likely problem is a hardware issue. An alternative approach would be if you can find some other N200 owner to compare with. Well... Finally, I've managed to get Windows Vista running on it. If I insert this SD card, it detects, that card has been inserted, but when I try to open it, it keeps telling me, that card is not formated. So, this is maybe really hardware bug. Sorry . That's a bummer. I hope you still have warranty so it can get fixed. If you don't, it should be easy to fix if you have some soldering skills (or know someone who has). My guess is that it's just a matter of bad connection between the slot and the circuit board. I'll close this bug for now. Reopen it if you still have problems when the hardware has been fixed. |