public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: linux-mmc@vger.kernel.org, Chris Ball <cjb@laptop.org>,
	Prabu Thangamuthu <Prabu.T@synopsys.com>,
	Seungwon Jeon <tgih.jun@samsung.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Subject: [PATCH 2/2] dw_mmc-pci: enable bus-mastering mode
Date: Thu,  8 Aug 2013 13:44:58 +0300	[thread overview]
Message-ID: <1375958698-10569-2-git-send-email-andriy.shevchenko@linux.intel.com> (raw)
In-Reply-To: <1375958698-10569-1-git-send-email-andriy.shevchenko@linux.intel.com>

This patch enables bus-mastering mode for MMC controller to allow IDMAC
transfers.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/mmc/host/dw_mmc-pci.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mmc/host/dw_mmc-pci.c b/drivers/mmc/host/dw_mmc-pci.c
index 7d148d6..f70546a 100644
--- a/drivers/mmc/host/dw_mmc-pci.c
+++ b/drivers/mmc/host/dw_mmc-pci.c
@@ -61,6 +61,8 @@ static int dw_mci_pci_probe(struct pci_dev *pdev,
 
 	host->regs = pcim_iomap_table(pdev)[PCI_BAR_NO];
 
+	pci_set_master(pdev);
+
 	ret = dw_mci_probe(host);
 	if (ret)
 		return ret;
-- 
1.8.4.rc1


  reply	other threads:[~2013-08-08 10:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-08 10:44 [PATCH 1/2] dw_mmc-pci: get resources from a proper BAR Andy Shevchenko
2013-08-08 10:44 ` Andy Shevchenko [this message]
2013-08-12  7:34   ` [PATCH 2/2] dw_mmc-pci: enable bus-mastering mode Prabu Thangamuthu
2013-08-12 10:33     ` Seungwon Jeon
2013-08-12  7:34 ` [PATCH 1/2] dw_mmc-pci: get resources from a proper BAR Prabu Thangamuthu
2013-08-12 10:33   ` Seungwon Jeon
2013-08-25  4:02 ` Chris Ball

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=1375958698-10569-2-git-send-email-andriy.shevchenko@linux.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=Prabu.T@synopsys.com \
    --cc=cjb@laptop.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=tgih.jun@samsung.com \
    /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