diff mbox

[2/2] dw_mmc-pci: enable bus-mastering mode

Message ID 1375958698-10569-2-git-send-email-andriy.shevchenko@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Andy Shevchenko Aug. 8, 2013, 10:44 a.m. UTC
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(+)

Comments

Prabu Thangamuthu Aug. 12, 2013, 7:34 a.m. UTC | #1
Tested-by: Prabu Thangamuthu <Prabu.T@synopsys.com>

Regards,
Prabu Thangamuthu.

On 08/12/2013 04:15 PM, Andy Shevchenko wrote:
> 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

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Seungwon Jeon Aug. 12, 2013, 10:33 a.m. UTC | #2
On Monday, August 12, 2013, Prabu Thangamuthu wrote:
> 
> Tested-by: Prabu Thangamuthu <Prabu.T@synopsys.com>
> 
> Regards,
> Prabu Thangamuthu.
> 
> On 08/12/2013 04:15 PM, Andy Shevchenko wrote:
> > This patch enables bus-mastering mode for MMC controller to allow IDMAC
> > transfers.
> >
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Acked-by: Seungwon Jeon <tgih.jun@samsung.com>

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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;