Home
last modified time | relevance | path

Searched hist:"959 a48d0" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/pci/endpoint/
H A Dpci-epc-core.c959a48d0 Mon Feb 01 13:57:54 CST 2021 Kishon Vijay Abraham I <kishon@ti.com> PCI: endpoint: Make *_get_first_free_bar() take into account 64 bit BAR

pci_epc_get_first_free_bar() uses only "reserved_bar" member in
epc_features to get the first unreserved BAR. However if the reserved BAR
is also a 64-bit BAR, then the next BAR shouldn't be returned (since 64-bit
BAR uses two BARs).

Make pci_epc_get_first_free_bar() take into account 64 bit BAR while
returning the first free unreserved BAR.

Link: https://lore.kernel.org/r/20210201195809.7342-3-kishon@ti.com
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>