Skip to content

Commit

Permalink
soc/google/cpif : Fix doorbell address for IOV
Browse files Browse the repository at this point in the history
With CONFIG_PCI_IOV enabled the doorbell bar address has moved.
Use PCI_BRIDGE_MEM_WINDOW defined in pci.h for the correct BAR value.

Bug: 191790532
Signed-off-by: Sajid Dalvi <[email protected]>
Change-Id: Ia7eafe29106bcce4647882f163d1ec8f9e5b25d3
  • Loading branch information
Sajid Dalvi committed Jun 24, 2021
1 parent 116d82e commit 24c70ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/soc/google/cpif/s51xx_pcie.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ static int s51xx_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *en
struct pci_bus *bus = pdev->bus;
struct pci_dev *bus_self = bus->self;
struct resource *tmp_rsc;
int resno = 8;
int resno = PCI_BRIDGE_MEM_WINDOW;
u32 val, db_addr;

dev_info(dev, "%s EP driver Probe(%s), chNum: %d\n",
Expand Down

0 comments on commit 24c70ed

Please sign in to comment.