mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
9871c799d1
commit
f84ef04227
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue