]> Git Repo - J-u-boot.git/commitdiff
arm: a37xx: pci: Fix condition for CRS response
authorPali Rohár <[email protected]>
Tue, 19 Oct 2021 09:05:01 +0000 (11:05 +0200)
committerStefan Roese <[email protected]>
Thu, 21 Oct 2021 05:39:05 +0000 (07:39 +0200)
As stated in comment above the code, CRS response can be returned to OS
only for 4-byte PCI_VENDOR_ID config read request. So fix the code.

Fixes: 1d7ad68559e2 ("arm: a37xx: pci: Handle propagation of CRSSVE bit from PCIe Root Port")
Signed-off-by: Pali Rohár <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
drivers/pci/pci-aardvark.c

index ade5ab056f84d983bee63ef71fab9d5ed90401cd..9e623b6e617b9acc725badc1b33884a6866a548c 100644 (file)
@@ -445,7 +445,7 @@ static int pcie_advk_read_config(const struct udevice *bus, pci_dev_t bdf,
         * for returning CRS, so that if U-Boot does support CRS in the future,
         * it will work for Aardvark.
         */
-       allow_crs = pcie->cfgcrssve;
+       allow_crs = (offset == PCI_VENDOR_ID) && (size == PCI_SIZE_32) && pcie->cfgcrssve;
 
        if (advk_readl(pcie, PIO_START)) {
                dev_err(pcie->dev,
This page took 0.035687 seconds and 4 git commands to generate.