Subbaraya Sundeep 73884a7082 PCI: Do not use bus number zero from EA capability
As per PCIe r5.0, sec 7.8.5.2, fixed bus numbers of a bridge must be zero
when no function that uses EA is located behind it.  Hence, if EA supplies
bus numbers of zero, assign bus numbers normally.  A secondary bus can
never have a bus number of zero, so setting a bridge's Secondary Bus Number
to zero makes downstream devices unreachable.

[bhelgaas: retain bool return value so "zero is invalid" logic is local]
Fixes: 2dbce5901179 ("PCI: Assign bus numbers present in EA capability for bridges")
Link: https://lore.kernel.org/r/1572850664-9861-1-git-send-email-sundeep.lkml@gmail.com
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: stable@vger.kernel.org	# v5.2+
2019-11-14 15:02:10 -06:00
..
2019-09-23 19:16:01 -07:00
2019-09-23 19:16:01 -07:00
2019-07-09 07:24:53 -05:00
2018-03-19 14:20:43 -05:00
2019-09-23 16:10:15 -05:00
2019-09-23 19:16:01 -07:00
2019-07-09 07:24:53 -05:00
2019-09-23 16:10:08 -05:00
2019-07-15 20:44:49 -07:00
2018-03-19 14:20:43 -05:00
2018-10-02 10:14:32 +02:00
2018-06-29 21:17:26 -05:00
2019-07-23 18:32:50 -05:00
2018-03-19 14:20:43 -05:00
2019-06-13 16:49:45 -05:00
2019-09-23 16:10:31 -05:00
2019-05-13 18:34:46 -05:00