Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;