]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mfd: rtsx: Declare that the DMA address limitation is 32bit explicitly
authorWei WANG <wei_wang@realsil.com.cn>
Tue, 29 Jan 2013 07:21:34 +0000 (15:21 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 13 Feb 2013 23:22:57 +0000 (00:22 +0100)
Realtek PCIe card reader only supports 32bit DMA.
This declaration can improve the readability.

Signed-off-by: Wei WANG <wei_wang@realsil.com.cn>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/rtsx_pcr.c

index c021ce3df95519cdac6a9793feca3e40e613915b..b2cfd2ed616c32db88ce53290c690fa0d4fabf1b 100644 (file)
@@ -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;