LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   SD Card not detected after hibernate. (https://www.linuxquestions.org/questions/slackware-14/sd-card-not-detected-after-hibernate-4175542998/)

4Strings 05-19-2015 03:22 AM

SD Card not detected after hibernate.
 
I'm on Slackware 14.1 (default kernel 3.10.17-smp). My SD Host controller is:
Code:

03:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
Whenever I resume from the hibernate state (suspend to disk) I'm experiencing an issue related to my sdcard reader:
the insertion of the SD Card is not detected after the hibernation/resume cycle.
Instead, no issue with (suspend to ram)/resume cycle.

After resume, whenever I insert the sdcard into the slot, I can't get any message in /var/log/messages, too.

I've also tried to reload the following kernel modules, but unfortunately no success! :(
Code:

mmc_core, mmc_block, sdhci, sdhci_pci, b44, ssb.
Please, is there any workaround I could try? It'd be fine, if I could avoid to reboot!

pan64 05-19-2015 03:35 AM

Just one question: was there a card in the reader (at the time of suspend/hibernation)?

4Strings 05-19-2015 04:43 AM

Quote:

Originally Posted by pan64 (Post 5364389)
Just one question: was there a card in the reader (at the time of suspend/hibernation)?

No, it wasn't.

According to you suggestion, I've made a try by taking the following steps:
1. Reboot.
2. Insert the sd card into the card reader.
  1. the devices "/dev/mmcblk0" and "/dev/mmcblk0p1" have been correctly created.
  2. /var/log/messages correctly returns:
    Code:

    May 19 09:53:14 darkstar kernel: [  202.087779] mmc0: new high speed SDHC card at address 1234
    May 19 09:53:14 darkstar kernel: [  202.110985] mmcblk0: mmc0:1234 SA08G 7.41 GiB (ro)
    May 19 09:53:14 darkstar kernel: [  202.113193]  mmcblk0: p1

3. Hibernate the system with the card still into the slot and with the two existing nodes (mmcblk0 and mmcblk0p1) in /dev.
4. At the next resume, the same issue unfortunately occurs again: the card isn't detected, no more mmcblk0 and mmcblk0p1 in /dev and no output in /var/log/message. :(

4Strings 10-09-2016 12:02 PM

Solved!
 
I want to resume this old thread just to mark it as solved because I finally could mount sd-cards again after hibernate!
Still on slackware 14.1, kernel 3.10.103-smp, removing and reloading the sdhci_pci kernel module solves the issue!
Code:

rmmod sdhci-pci
modprobe sdhci-pci

I hope it can be useful to someone else! :)

julien1001 01-06-2017 04:50 PM

Quote:

I hope it can be useful to someone else!
I had the same issue (same SD Host controller, same Slackware version, same result) and your solution worked. So yes, it was useful to someone!
Thank you very much!

4Strings 01-08-2017 03:31 PM

Quote:

Originally Posted by julien1001 (Post 5651399)
I had the same issue (same SD Host controller, same Slackware version, same result) and your solution worked. So yes, it was useful to someone!
Thank you very much!

Happy to read that! :) :thumbsup:


All times are GMT -5. The time now is 04:02 PM.