Commit 416c0547 authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by Jens Axboe

mtip32xx: use PCI #defines instead of numbers

Use PCI #defines for PCIe Device Control register values instead of
hard-coding bit positions.  No functional change intended.
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 6cc8e743
...@@ -3932,8 +3932,8 @@ static void mtip_disable_link_opts(struct driver_data *dd, struct pci_dev *pdev) ...@@ -3932,8 +3932,8 @@ static void mtip_disable_link_opts(struct driver_data *dd, struct pci_dev *pdev)
pci_read_config_word(pdev, pci_read_config_word(pdev,
pos + PCI_EXP_DEVCTL, pos + PCI_EXP_DEVCTL,
&pcie_dev_ctrl); &pcie_dev_ctrl);
if (pcie_dev_ctrl & (1 << 11) || if (pcie_dev_ctrl & PCI_EXP_DEVCTL_NOSNOOP_EN ||
pcie_dev_ctrl & (1 << 4)) { pcie_dev_ctrl & PCI_EXP_DEVCTL_RELAX_EN) {
dev_info(&dd->pdev->dev, dev_info(&dd->pdev->dev,
"Disabling ERO/No-Snoop on bridge device %04x:%04x\n", "Disabling ERO/No-Snoop on bridge device %04x:%04x\n",
pdev->vendor, pdev->device); pdev->vendor, pdev->device);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment