Commit fcc32a21 authored by Denis Efremov's avatar Denis Efremov Committed by David S. Miller

liquidio: Use pcie_flr() instead of reimplementing it

octeon_mbox_process_cmd() directly writes the PCI_EXP_DEVCTL_BCR_FLR
bit, which bypasses timing requirements imposed by the PCIe spec.
This patch fixes the function to use the pcie_flr() interface instead.
Signed-off-by: default avatarDenis Efremov <efremov@linux.com>
Reviewed-by: default avatarAndrew Murray <andrew.murray@arm.com>
Reviewed-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 32879f00
...@@ -260,9 +260,7 @@ static int octeon_mbox_process_cmd(struct octeon_mbox *mbox, ...@@ -260,9 +260,7 @@ static int octeon_mbox_process_cmd(struct octeon_mbox *mbox,
dev_info(&oct->pci_dev->dev, dev_info(&oct->pci_dev->dev,
"got a request for FLR from VF that owns DPI ring %u\n", "got a request for FLR from VF that owns DPI ring %u\n",
mbox->q_no); mbox->q_no);
pcie_capability_set_word( pcie_flr(oct->sriov_info.dpiring_to_vfpcidev_lut[mbox->q_no]);
oct->sriov_info.dpiring_to_vfpcidev_lut[mbox->q_no],
PCI_EXP_DEVCTL, PCI_EXP_DEVCTL_BCR_FLR);
break; break;
case OCTEON_PF_CHANGED_VF_MACADDR: case OCTEON_PF_CHANGED_VF_MACADDR:
......
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