From: Wei WANG Date: Tue, 29 Jan 2013 07:21:34 +0000 (+0800) Subject: mfd: rtsx: Declare that the DMA address limitation is 32bit explicitly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f84ef04227d8983c8f76ac0f5cf8b0a15e0c67af;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mfd: rtsx: Declare that the DMA address limitation is 32bit explicitly Realtek PCIe card reader only supports 32bit DMA. This declaration can improve the readability. Signed-off-by: Wei WANG Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/rtsx_pcr.c b/drivers/mfd/rtsx_pcr.c index c021ce3df955..b2cfd2ed616c 100644 --- a/drivers/mfd/rtsx_pcr.c +++ b/drivers/mfd/rtsx_pcr.c @@ -1029,6 +1029,10 @@ static int rtsx_pci_probe(struct pci_dev *pcidev, pci_name(pcidev), (int)pcidev->vendor, (int)pcidev->device, (int)pcidev->revision); + ret = pci_set_dma_mask(pcidev, DMA_BIT_MASK(32)); + if (ret < 0) + return ret; + ret = pci_enable_device(pcidev); if (ret) return ret;