Răsfoiți Sursa

rapidio/tsi721: use PCI define for Max_Read_Request_Size

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>
Rafał Miłecki 10 ani în urmă
părinte
comite
b33f87c7e6
2 a modificat fișierele cu 1 adăugiri și 3 ștergeri
  1. 1 1
      drivers/rapidio/devices/tsi721.c
  2. 0 2
      drivers/rapidio/devices/tsi721.h

+ 1 - 1
drivers/rapidio/devices/tsi721.c

@@ -2430,7 +2430,7 @@ static int tsi721_probe(struct pci_dev *pdev,
 	pcie_capability_clear_and_set_word(pdev, PCI_EXP_DEVCTL,
 	pcie_capability_clear_and_set_word(pdev, PCI_EXP_DEVCTL,
 		PCI_EXP_DEVCTL_READRQ | PCI_EXP_DEVCTL_RELAX_EN |
 		PCI_EXP_DEVCTL_READRQ | PCI_EXP_DEVCTL_RELAX_EN |
 		PCI_EXP_DEVCTL_NOSNOOP_EN,
 		PCI_EXP_DEVCTL_NOSNOOP_EN,
-		0x2 << MAX_READ_REQUEST_SZ_SHIFT);
+		PCI_EXP_DEVCTL_READRQ_512B);
 
 
 	/* Adjust PCIe completion timeout. */
 	/* Adjust PCIe completion timeout. */
 	pcie_capability_clear_and_set_word(pdev, PCI_EXP_DEVCTL2, 0xf, 0x2);
 	pcie_capability_clear_and_set_word(pdev, PCI_EXP_DEVCTL2, 0xf, 0x2);

+ 0 - 2
drivers/rapidio/devices/tsi721.h

@@ -72,8 +72,6 @@
 #define TSI721_MSIXPBA_OFFSET	0x2a000
 #define TSI721_MSIXPBA_OFFSET	0x2a000
 #define TSI721_PCIECFG_EPCTL	0x400
 #define TSI721_PCIECFG_EPCTL	0x400
 
 
-#define MAX_READ_REQUEST_SZ_SHIFT	12
-
 /*
 /*
  * Event Management Registers
  * Event Management Registers
  */
  */