From patchwork Thu Aug 8 10:44:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 2841012 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7EF17BF535 for ; Thu, 8 Aug 2013 10:45:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 553592012D for ; Thu, 8 Aug 2013 10:45:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 35A5C201B3 for ; Thu, 8 Aug 2013 10:45:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965026Ab3HHKpR (ORCPT ); Thu, 8 Aug 2013 06:45:17 -0400 Received: from mga09.intel.com ([134.134.136.24]:33645 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757726Ab3HHKpQ (ORCPT ); Thu, 8 Aug 2013 06:45:16 -0400 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 08 Aug 2013 03:42:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.89,838,1367996400"; d="scan'208";a="359561901" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.173]) by orsmga001.jf.intel.com with ESMTP; 08 Aug 2013 03:45:10 -0700 Received: from andy by smile with local (Exim 4.80) (envelope-from ) id 1V7NiF-0002lR-QJ; Thu, 08 Aug 2013 13:44:59 +0300 From: Andy Shevchenko To: linux-mmc@vger.kernel.org, Chris Ball , Prabu Thangamuthu , Seungwon Jeon Cc: Andy Shevchenko Subject: [PATCH 2/2] dw_mmc-pci: enable bus-mastering mode Date: Thu, 8 Aug 2013 13:44:58 +0300 Message-Id: <1375958698-10569-2-git-send-email-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 1.8.4.rc1 In-Reply-To: <1375958698-10569-1-git-send-email-andriy.shevchenko@linux.intel.com> References: <1375958698-10569-1-git-send-email-andriy.shevchenko@linux.intel.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch enables bus-mastering mode for MMC controller to allow IDMAC transfers. Signed-off-by: Andy Shevchenko Tested-by: Prabu Thangamuthu Acked-by: Seungwon Jeon --- 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;