[linux-yocto] [PATCH 051/161] arm/mach-axxia: Fixed type1 PCIe	enumeration issue
    Cristian Bercaru 
    cristian.bercaru at windriver.com
       
    Thu May 21 12:20:33 PDT 2015
    
    
  
From: SangeethaRao <sangeetha.rao at lsi.com>
PCI_FUNC() and PCI_SLOT() macros are already doing the masking and
shifting and it was incorrectly being done twice.
Signed-off-by: SangeethaRao <sangeetha.rao at lsi.com>
---
 arch/arm/mach-axxia/pci.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-axxia/pci.c b/arch/arm/mach-axxia/pci.c
index b0ddab6..2600892 100644
--- a/arch/arm/mach-axxia/pci.c
+++ b/arch/arm/mach-axxia/pci.c
@@ -209,8 +209,8 @@ axxia_pciex_get_config_base(struct axxia_pciex_port *port,
 		return port->regs;
 
 	relbus = bus->number - (port->root_bus_nr + 1);
-	dev    = (PCI_SLOT(devfn) & 0xf8) >> 3;
-	fn     = (PCI_FUNC(devfn) & 0x7);
+	dev    = PCI_SLOT(devfn);
+	fn     = PCI_FUNC(devfn);
 
 	if (dev > 31)
 		return NULL;
-- 
1.7.9.5
    
    
More information about the linux-yocto
mailing list