aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2013-12-14 15:06:47 -0500
committerBjorn Helgaas <bhelgaas@google.com>2013-12-15 20:00:00 -0500
commitdf72648c4d61d6d0ce033c0467a9fabec670fe46 (patch)
tree7ab9f89b22b4fbd2ec43941318387a202083c402
parent2f2ed41cf43e22686349ecdf4ca247ea3831af55 (diff)
PCI: pciehp: Use symbolic constants, not hard-coded bitmask
Use the PCI_EXP_SLTSTA definitions, not 0x1f, when clearing Slot Status bits. No functional change. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r--drivers/pci/hotplug/pciehp_hpc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c
index cb3100af7e8c..915bb35f9180 100644
--- a/drivers/pci/hotplug/pciehp_hpc.c
+++ b/drivers/pci/hotplug/pciehp_hpc.c
@@ -808,7 +808,10 @@ struct controller *pcie_init(struct pcie_device *dev)
808 } 808 }
809 809
810 /* Clear all remaining event bits in Slot Status register */ 810 /* Clear all remaining event bits in Slot Status register */
811 pcie_capability_write_word(pdev, PCI_EXP_SLTSTA, 0x1f); 811 pcie_capability_write_word(pdev, PCI_EXP_SLTSTA,
812 PCI_EXP_SLTSTA_ABP | PCI_EXP_SLTSTA_PFD |
813 PCI_EXP_SLTSTA_MRLSC | PCI_EXP_SLTSTA_PDC |
814 PCI_EXP_SLTSTA_CC);
812 815
813 /* Disable software notification */ 816 /* Disable software notification */
814 pcie_disable_notification(ctrl); 817 pcie_disable_notification(ctrl);