mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 17:01:14 +00:00
qed: Prefer pcie_capability_read_word()
Commit 8c0d3a02c1
("PCI: Add accessors for PCI Express Capability")
added accessors for the PCI Express Capability so that drivers didn't
need to be aware of differences between v1 and v2 of the PCI
Express Capability.
Replace pci_read_config_word() and pci_write_config_word() calls with
pcie_capability_read_word() and pcie_capability_write_word().
Signed-off-by: Frederick Lawler <fred@fredlawl.com>
Acked-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a16f6d3a15
commit
93428c5826
1 changed files with 2 additions and 3 deletions
|
@ -530,8 +530,7 @@ static void qed_rdma_init_devinfo(struct qed_hwfn *p_hwfn,
|
|||
SET_FIELD(dev->dev_caps, QED_RDMA_DEV_CAP_LOCAL_INV_FENCE, 1);
|
||||
|
||||
/* Check atomic operations support in PCI configuration space. */
|
||||
pci_read_config_dword(cdev->pdev,
|
||||
cdev->pdev->pcie_cap + PCI_EXP_DEVCTL2,
|
||||
pcie_capability_read_dword(cdev->pdev, PCI_EXP_DEVCTL2,
|
||||
&pci_status_control);
|
||||
|
||||
if (pci_status_control & PCI_EXP_DEVCTL2_LTR_EN)
|
||||
|
|
Loading…
Reference in a new issue