Message ID | 7ba22b7e0e0be5a353cdfcfefbeff03a5be973c0.1356403281.git.wei_wang@realsil.com.cn (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Tue, Dec 25, 2012 at 10:43:09AM +0800, wei_wang@realsil.com.cn wrote: > From: Wei WANG <wei_wang@realsil.com.cn> > > Signed-off-by: Wei WANG <wei_wang@realsil.com.cn> This one is still missing a commit message. You might want to write some blubber about the hardware supporting only 32-bit DMA or whatever the real reason is. Also, with the whole patchset, please don't send it the very next day but do wait a couple of days to collect all feedback from people - especially now I'd wait even longer since everyone except you and me are away :) - and then resend it after incorporating all feedback. Thanks.
diff --git a/drivers/mfd/rtsx_pcr.c b/drivers/mfd/rtsx_pcr.c index fa2c2bc..1dc64bb 100644 --- a/drivers/mfd/rtsx_pcr.c +++ b/drivers/mfd/rtsx_pcr.c @@ -1010,6 +1010,10 @@ static int __devinit 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;