Skip to content

Commit

Permalink
rapidio/tsi721: use PCI define for Max_Read_Request_Size
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafał Miłecki authored and Bjorn Helgaas committed Jan 27, 2015
1 parent 5929b8a commit b33f87c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/rapidio/devices/tsi721.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions drivers/rapidio/devices/tsi721.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@
#define TSI721_MSIXPBA_OFFSET 0x2a000
#define TSI721_PCIECFG_EPCTL 0x400

#define MAX_READ_REQUEST_SZ_SHIFT 12

/*
* Event Management Registers
*/
Expand Down

0 comments on commit b33f87c

Please sign in to comment.