rapidio/tsi721: use PCI define for Max_Read_Request_Size
authorRafał Miłecki <zajec5@gmail.com>
Mon, 26 Jan 2015 17:06:02 +0000 (18:06 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 27 Jan 2015 14:14:26 +0000 (08:14 -0600)
Replace a magic number with a PCI #define symbol.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Alexandre Bounine <alexandre.bounine@idt.com>
drivers/rapidio/devices/tsi721.c
drivers/rapidio/devices/tsi721.h

index 8bcfecd66281580e7cace2476a4cc81b5e23808a..eeca70ddbf61e1cd8c7331d54c51c842ddc784fd 100644 (file)
@@ -2430,7 +2430,7 @@ static int tsi721_probe(struct pci_dev *pdev,
        pcie_capability_clear_and_set_word(pdev, PCI_EXP_DEVCTL,
                PCI_EXP_DEVCTL_READRQ | PCI_EXP_DEVCTL_RELAX_EN |
                PCI_EXP_DEVCTL_NOSNOOP_EN,
-               0x2 << MAX_READ_REQUEST_SZ_SHIFT);
+               PCI_EXP_DEVCTL_READRQ_512B);
 
        /* Adjust PCIe completion timeout. */
        pcie_capability_clear_and_set_word(pdev, PCI_EXP_DEVCTL2, 0xf, 0x2);
index a7b42680a06a2f2ebfd539e5832a2d22552b9ac2..9d2502543ef677c28f382d70664dee4bb3c031ea 100644 (file)
@@ -72,8 +72,6 @@
 #define TSI721_MSIXPBA_OFFSET  0x2a000
 #define TSI721_PCIECFG_EPCTL   0x400
 
-#define MAX_READ_REQUEST_SZ_SHIFT      12
-
 /*
  * Event Management Registers
  */