Commit f84ef042 authored by Wei WANG's avatar Wei WANG Committed by Samuel Ortiz

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: default avatarWei WANG <wei_wang@realsil.com.cn>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 9871c799
...@@ -1029,6 +1029,10 @@ static int rtsx_pci_probe(struct pci_dev *pcidev, ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment