public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: Vasily Khoruzhick <anarsoul@gmail.com>
To: linux-mmc@vger.kernel.org
Subject: [PATCH v2] Enable DMA for Ricoh reader on Lenovo laptops
Date: Tue, 2 Feb 2010 18:17:15 +0200	[thread overview]
Message-ID: <201002021817.35773.anarsoul@gmail.com> (raw)
In-Reply-To: <201002011111.13010.anarsoul@gmail.com>


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

В сообщении от 1 февраля 2010 11:10:53 автор Vasily Khoruzhick написал:
> 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.

It seems that Ricoh R5C822 card reader on mentioned laptops need one more 
quirk. Here's updated patch.

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

From 3b93e891e0e37afefc1f1eca461dcfc3ded879f9 Mon Sep 17 00:00:00 2001
From: Vasily Khoruzhick <anarsoul@gmail.com>
Date: Tue, 2 Feb 2010 18:12:54 +0200
Subject: [PATCH v2] Enable DMA for Ricoh reader on Lenovo laptops

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

diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c
index 5c3a176..d49e5ff 100644
--- a/drivers/mmc/host/sdhci-pci.c
+++ b/drivers/mmc/host/sdhci-pci.c
@@ -80,13 +80,17 @@ struct sdhci_pci_chip {
 
 static int ricoh_probe(struct sdhci_pci_chip *chip)
 {
-	if (chip->pdev->subsystem_vendor == PCI_VENDOR_ID_IBM)
+	if (chip->pdev->subsystem_vendor == PCI_VENDOR_ID_IBM ||
+	    chip->pdev->subsystem_vendor == PCI_VENDOR_ID_LENOVO)
 		chip->quirks |= SDHCI_QUIRK_CLOCK_BEFORE_RESET;
 
 	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;
 
+	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 --]

  reply	other threads:[~2010-02-02 16:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-01  9:10 [PATCH] Enable DMA for Ricoh reader on Lenovo laptops Vasily Khoruzhick
2010-02-02 16:17 ` Vasily Khoruzhick [this message]
2010-02-13 22:38   ` [PATCH v2] " 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201002021817.35773.anarsoul@gmail.com \
    --to=anarsoul@gmail.com \
    --cc=linux-mmc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox