public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Enable DMA for Ricoh reader on Lenovo laptops
@ 2010-02-01  9:10 Vasily Khoruzhick
  2010-02-02 16:17 ` [PATCH v2] " Vasily Khoruzhick
  0 siblings, 1 reply; 14+ messages in thread
From: Vasily Khoruzhick @ 2010-02-01  9:10 UTC (permalink / raw)
  To: linux-mmc


[-- Attachment #1.1: Type: Text/Plain, Size: 201 bytes --]

Ricoh SD/MMC card reader on Lenovo laptops (3000 n100, 3000 n200) doesn't 
announce DMA capability, however it supports DMA. Without this patch audio 
clicks and cursor is jerky during card access.

[-- Attachment #1.2: 0001-Enable-DMA-for-Ricoh-reader-on-Lenovo-laptops.patch --]
[-- Type: text/x-patch, Size: 880 bytes --]

From 442d0b0234a20f442cacfd0844bc8128a81638bc Mon Sep 17 00:00:00 2001
From: Vasily Khoruzhick <anarsoul@gmail.com>
Date: Mon, 1 Feb 2010 10:55:55 +0200
Subject: [PATCH] Enable DMA for Ricoh reader on Lenovo laptops

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
---
 drivers/mmc/host/sdhci-pci.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c
index 5c3a176..ada9d10 100644
--- a/drivers/mmc/host/sdhci-pci.c
+++ b/drivers/mmc/host/sdhci-pci.c
@@ -87,6 +87,9 @@ static int ricoh_probe(struct sdhci_pci_chip *chip)
 	    chip->pdev->subsystem_vendor == PCI_VENDOR_ID_SONY)
 		chip->quirks |= SDHCI_QUIRK_NO_CARD_NO_RESET;
 
+	if (chip->pdev->subsystem_vendor == PCI_VENDOR_ID_LENOVO)
+		chip->quirks |= SDHCI_QUIRK_FORCE_DMA;
+
 	return 0;
 }
 
-- 
1.6.6.1


[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-02-26 21:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-01  9:10 [PATCH] Enable DMA for Ricoh reader on Lenovo laptops Vasily Khoruzhick
2010-02-02 16:17 ` [PATCH v2] " Vasily Khoruzhick
2010-02-13 22:38   ` Vasily Khoruzhick
2010-02-14 16:39     ` Maxim Levitsky
2010-02-14 23:06       ` Vasily Khoruzhick
2010-02-14 23:20         ` Maxim Levitsky
2010-02-15  9:49           ` Vasily Khoruzhick
2010-02-15 15:58             ` Maxim Levitsky
2010-02-15 16:20               ` Vasily Khoruzhick
2010-02-17  0:35                 ` Maxim Levitsky
2010-02-20  8:49                 ` Vasily Khoruzhick
2010-02-20 22:21                   ` Maxim Levitsky
2010-02-24 20:00                     ` Andrew Morton
2010-02-26 21:25                       ` [PATCH] Subject: MMC: Enable DMA on Ricoh sdhci reader by default Maxim Levitsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox