瀏覽代碼

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 <wei_wang@realsil.com.cn>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Wei WANG 12 年之前
父節點
當前提交
f84ef04227
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      drivers/mfd/rtsx_pcr.c

+ 4 - 0
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,
 		pci_name(pcidev), (int)pcidev->vendor, (int)pcidev->device,
 		(int)pcidev->revision);
 		(int)pcidev->revision);
 
 
+	ret = pci_set_dma_mask(pcidev, DMA_BIT_MASK(32));
+	if (ret < 0)
+		return ret;
+
 	ret = pci_enable_device(pcidev);
 	ret = pci_enable_device(pcidev);
 	if (ret)
 	if (ret)
 		return ret;
 		return ret;