← Back to team overview

sony-vaio-z-series team mailing list archive

Re: Question regarding SD Card Slot

 

On Di, 15 Sep 2009, Tom Fisher wrote:
> in the meantime, a quicker solution someone mentioned a while back which 
> 'works for me' in 2.6.30 is to suspend (echo mem > /sys/power/state) and 
> resume.
> upon resume i get the device back as /dev/mmcblk0

But only for one operation. Ejecting the sd card and re-inserting is
problematic.

The fix is trivial and attached.

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining@xxxxxxxx>        Vienna University of Technology
Debian Developer <preining@xxxxxxxxxx>                         Debian TeX Group
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
SILESIA (n. medical)
The inability to remember, at the critical moment, which is the better
side of a boat to be seasick off.
			--- Douglas Adams, The Meaning of Liff
From: Chris Ball <cjb@xxxxxxxxxx>
Date: Thu, 13 Aug 2009 16:13:37 -0400
Subject: [PATCH] Add no-reset-no-card quirk for Ricoh R5C822 on Sony laptops.

As reported here, card insertion detection is broken without this quirk
on a Sony Vaio Z11:  http://marc.info/?l=linux-mmc&r=1&b=200908&w=2

Signed-off-by: Chris Ball <cjb@xxxxxxxxxx>
Cc: Pierre Ossman <pierre@xxxxxxxxx> 

---
 drivers/mmc/host/sdhci-pci.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c
index 2f15cc1..63b9d2a 100644
--- a/drivers/mmc/host/sdhci-pci.c
+++ b/drivers/mmc/host/sdhci-pci.c
@@ -83,7 +83,8 @@ static int ricoh_probe(struct sdhci_pci_chip *chip)
 	if (chip->pdev->subsystem_vendor == PCI_VENDOR_ID_IBM)
 		chip->quirks |= SDHCI_QUIRK_CLOCK_BEFORE_RESET;
 
-	if (chip->pdev->subsystem_vendor == PCI_VENDOR_ID_SAMSUNG)
+	if (chip->pdev->subsystem_vendor == PCI_VENDOR_ID_SAMSUNG ||
+	    chip->pdev->subsystem_vendor == PCI_VENDOR_ID_SONY)
 		chip->quirks |= SDHCI_QUIRK_NO_CARD_NO_RESET;
 
 	return 0;

Follow ups

References