Skip to content

Commit

Permalink
rapidio/tsi721: use PCI_EXP_DEVCTL2_COMP_TIMEOUT macro
Browse files Browse the repository at this point in the history
Use the existing PCI_EXP_DEVCTL2_COMP_TIMEOUT macro instead of hard-coding
the PCIe Completion Timeout Value mask.  No functional change intended.

Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: Alexandre Bounine <[email protected]>
  • Loading branch information
bjorn-helgaas authored and Bjorn Helgaas committed Feb 16, 2018
1 parent 7928b2c commit 7babfa5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/rapidio/devices/tsi721.c
Original file line number Diff line number Diff line change
Expand Up @@ -2880,8 +2880,9 @@ static int tsi721_probe(struct pci_dev *pdev,
"Invalid MRRS override value %d", pcie_mrrs);
}

/* Adjust PCIe completion timeout. */
pcie_capability_clear_and_set_word(pdev, PCI_EXP_DEVCTL2, 0xf, 0x2);
/* Set PCIe completion timeout to 1-10ms */
pcie_capability_clear_and_set_word(pdev, PCI_EXP_DEVCTL2,
PCI_EXP_DEVCTL2_COMP_TIMEOUT, 0x2);

/*
* FIXUP: correct offsets of MSI-X tables in the MSI-X Capability Block
Expand Down

0 comments on commit 7babfa5

Please sign in to comment.