projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9871c79
)
mfd: rtsx: Declare that the DMA address limitation is 32bit explicitly
author
Wei WANG
<wei_wang@realsil.com.cn>
Tue, 29 Jan 2013 07:21:34 +0000
(15:21 +0800)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Wed, 13 Feb 2013 23:22:57 +0000
(
00:22
+0100)
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>
drivers/mfd/rtsx_pcr.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/rtsx_pcr.c
b/drivers/mfd/rtsx_pcr.c
index c021ce3df95519cdac6a9793feca3e40e613915b..b2cfd2ed616c32db88ce53290c690fa0d4fabf1b 100644
(file)
--- 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;