summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/rtsx_pcr.c
diff options
context:
space:
mode:
authorWei WANG <wei_wang@realsil.com.cn>2013-01-29 08:21:34 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2013-02-14 00:22:57 +0100
commitf84ef04227d8983c8f76ac0f5cf8b0a15e0c67af (patch)
treec6c5f1b36eaa726044dbcb4b56f9702fa3b224ac /drivers/mfd/rtsx_pcr.c
parentmfd: rtsx: Remove redundant code (diff)
downloadlinux-f84ef04227d8983c8f76ac0f5cf8b0a15e0c67af.tar.xz
linux-f84ef04227d8983c8f76ac0f5cf8b0a15e0c67af.zip
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>
Diffstat (limited to 'drivers/mfd/rtsx_pcr.c')
-rw-r--r--drivers/mfd/rtsx_pcr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mfd/rtsx_pcr.c b/drivers/mfd/rtsx_pcr.c
index c021ce3df955..b2cfd2ed616c 100644
--- a/drivers/mfd/rtsx_pcr.c
+++ b/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,
(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;