On Tue, Jan 31, 2017 at 09:49:29PM +0000, Jayachandran C wrote: > On Tue, Jan 31, 2017 at 03:13:23PM -0600, Bjorn Helgaas wrote: > > On Tue, Jan 31, 2017 at 08:45:01PM +0000, Jayachandran C wrote: > > > Commit 51ebfc92b72b4f7dac1ab45683bf56741e454b8c ("PCI: Enumerate > > > switches below PCI-to-PCIe bridges") sets the has_secondary_link > > > value for device type PCI_EXP_TYPE_PCIE_BRIDGE. With this change > > > the function alloc_pcie_link_state() can be called with devices > > > of this type as well. > > > > You mean like this: > > https://git.kernel.org/cgit/linux/kernel/git/helgaas/pci.git/commit/?h=for-linus&id=672980c62c684a625fe3a688ca8c6214062d712b > > > > Practically identical to yours :) > > > > I should have checked the list before sending out the patch... > Anyway, your fix works for me. So, > > Tested-by: Jayachandran C. <jnair@xxxxxxxxxxxxxxxxxx> Thanks a lot! I added your Tested-by.