Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df72648c authored by Bjorn Helgaas's avatar Bjorn Helgaas
Browse files

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: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 2f2ed41c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -808,7 +808,10 @@ struct controller *pcie_init(struct pcie_device *dev)
        }

	/* Clear all remaining event bits in Slot Status register */
	pcie_capability_write_word(pdev, PCI_EXP_SLTSTA, 0x1f);
	pcie_capability_write_word(pdev, PCI_EXP_SLTSTA,
		PCI_EXP_SLTSTA_ABP | PCI_EXP_SLTSTA_PFD |
		PCI_EXP_SLTSTA_MRLSC | PCI_EXP_SLTSTA_PDC |
		PCI_EXP_SLTSTA_CC);

	/* Disable software notification */
	pcie_disable_notification(ctrl);