lkml.org 
[lkml]   [2019]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCHv5 15/20] PCI: mobiveil: Fix the checking of valid device
    Date
    From: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>

    Allow CFG transactions to all functions of Endpoint implemented
    multiple functions.

    Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver")
    Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
    Reviewed-by: Minghuan Lian <Minghuan.Lian@nxp.com>
    ---
    V5:
    - Corrected and retouched the subject and changelog.

    drivers/pci/controller/pcie-mobiveil.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c
    index 9210165fe8c0..621852078caf 100644
    --- a/drivers/pci/controller/pcie-mobiveil.c
    +++ b/drivers/pci/controller/pcie-mobiveil.c
    @@ -291,7 +291,7 @@ static bool mobiveil_pcie_valid_device(struct pci_bus *bus, unsigned int devfn)
    * Do not read more than one device on the bus directly
    * attached to RC
    */
    - if ((bus->primary == pcie->root_bus_nr) && (devfn > 0))
    + if ((bus->primary == pcie->root_bus_nr) && (PCI_SLOT(devfn) > 0))
    return false;

    return true;
    --
    2.17.1
    \
     
     \ /
      Last update: 2019-04-12 10:37    [W:3.782 / U:1.640 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site