]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: altera: Fix Requester ID for config accesses
authorLey Foon Tan <lftan@altera.com>
Fri, 4 Dec 2015 22:21:12 +0000 (16:21 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 4 Dec 2015 22:21:12 +0000 (16:21 -0600)
commit193790c6e0b5b38fe36193b43853206c7a7f5fbb
treedf80bf595d5dfc1ff564f9453c308f23f715a46d
parente82fe59ed62bc0fbd75f04d19464fca05b9be840
PCI: altera: Fix Requester ID for config accesses

The Requester ID should use the Root Port devfn and it should be always 0.
Previously we constructed the Requester ID using the *Completer* devfn,
i.e., the devfn of the Function we expect to respond to the config access.
This causes issues when accessing configuration space for devices other
than the Root Port.

Build the Requester ID using the Root Port devfn.

Tested on Ethernet adapter card with multi-functions.

Signed-off-by: Ley Foon Tan <lftan@altera.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-altera.c