Skip to content

Commit

Permalink
mfd: rtsx: Declare that the DMA address limitation is 32bit explicitly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei WANG authored and Samuel Ortiz committed Feb 13, 2013
1 parent 9871c79 commit f84ef04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/mfd/rtsx_pcr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f84ef04

Please sign in to comment.