lkml.org 
[lkml]   [2013]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3/6] MFD:rtsx: Declare that the DMA address limitation is 32bit explicitly
    Date
    From: Wei WANG <wei_wang@realsil.com.cn>

    Realtek PCIe card reader only supports 32bit DMA.
    This declaration can improve the readability

    Signed-off-by: Wei WANG <wei_wang@realsil.com.cn>
    ---
    drivers/mfd/rtsx_pcr.c | 4 ++++
    1 file changed, 4 insertions(+)

    diff --git a/drivers/mfd/rtsx_pcr.c b/drivers/mfd/rtsx_pcr.c
    index c021ce3..b2cfd2e 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;
    --
    1.7.9.5


    \
     
     \ /
      Last update: 2013-01-29 09:21    [W:7.944 / U:0.140 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site