← Back to team overview

sony-vaio-z-series team mailing list archive

SD/MMC card reader problem ... final and clear tutorial

 

Hi guys,

the problem with SD/MMS card reader was several times mentioned here.
I will be really very happy if I could be able use SD/MMC card by
normal way.

 As the relevant fix of this problem was posted by Norbert the following info:
------------------------------------
 rom: Chris Ball <c...@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 <c...@xxxxxxxxxx>
Cc: Pierre Ossman <pie...@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;
------------------------------------

Frankly speaking, I have no idea what I should to do. I am only
standard Linux user, not a kernel guru. Could be anybody here so kind
and tell me how can I apply this patch on my Ubuntu Karmic x64 machine
(VGN-Z41XD).

Thank in advance, Michal



Follow ups