lkml.org 
[lkml]   [2020]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.5 016/120] PCI/switchtec: Use dma_set_mask_and_coherent()
    Date
    From: Wesley Sheng <wesley.sheng@microchip.com>

    commit aa82130a22f77c1aa5794703730304d035a0c1f4 upstream.

    Use dma_set_mask_and_coherent() instead of dma_set_coherent_mask() as the
    Switchtec hardware fully supports 64bit addressing and we should set both
    the streaming and coherent masks the same.

    [logang@deltatee.com: reworked commit message]
    Fixes: aff614c6339c ("switchtec: Set DMA coherent mask")
    Link: https://lore.kernel.org/r/20200106190337.2428-2-logang@deltatee.com
    Signed-off-by: Wesley Sheng <wesley.sheng@microchip.com>
    Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
    Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/pci/switch/switchtec.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/pci/switch/switchtec.c
    +++ b/drivers/pci/switch/switchtec.c
    @@ -1349,7 +1349,7 @@ static int switchtec_init_pci(struct swi
    if (rc)
    return rc;

    - rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64));
    + rc = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
    if (rc)
    return rc;


    \
     
     \ /
      Last update: 2020-02-13 16:33    [W:4.035 / U:0.720 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site