On 2013/4/2 6:23, Luck, Tony wrote: >> In IA64 platform, we don't call pci_enable_bridges() >> when scan all pci buses during system boot up. But in >> X86 we do it in > > Your patch looks plausible ... but I have a question. X86 doesn't > *directly* call pci_enable_bridges() from any arch/x86/* file. > Hi Tony, In x86, we will use pcibios_assign_resources() in arch/x86/pci/i386.c to assign pci device resource. And at the end of pci_assign_unassigned_resources() function we enable pci bridges. So X86 call pci_enable_bridges() when doing device resource assignment. But in IA64, we assign device resource according BIOS setting in PCI BARs. No additional resource reassignment code support after scan all pci buses. In this respects, resource reassignment support is weak in IA64. But this patch mainly to fix the unbalanced dev->enable_cnt in IA64 which will print WARNING Calltrace in dmesg. If you think it is valuable, I will try to improve resource assignment in IA64 like other arch (eg arm, m68k, mips and sh..) in another patch. Thanks! Yijing. > Do we need this in an arch/ia64 file because our PCI support > is getting old and stale? "git grep" says that arm, m68k, mips > and sh all make direct calls. I think so. > > -Tony > > . > -- Thanks! Yijing -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html