Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rapidio/tsi721: use PCI_EXP_DEVCTL2_COMP_TIMEOUT macro

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 <bhelgaas@google.com>
Acked-by: Alexandre Bounine <alexandre.bounine@idt.com>

authored by

Bjorn Helgaas and committed by
Bjorn Helgaas
7babfa5b 7928b2cb

+3 -2
+3 -2
drivers/rapidio/devices/tsi721.c
··· 2880 2880 "Invalid MRRS override value %d", pcie_mrrs); 2881 2881 } 2882 2882 2883 - /* Adjust PCIe completion timeout. */ 2884 - pcie_capability_clear_and_set_word(pdev, PCI_EXP_DEVCTL2, 0xf, 0x2); 2883 + /* Set PCIe completion timeout to 1-10ms */ 2884 + pcie_capability_clear_and_set_word(pdev, PCI_EXP_DEVCTL2, 2885 + PCI_EXP_DEVCTL2_COMP_TIMEOUT, 0x2); 2885 2886 2886 2887 /* 2887 2888 * FIXUP: correct offsets of MSI-X tables in the MSI-X Capability Block