Skip to contentSkip to conversation

PCI: pciehp: Cleanup unused EMI() and HP_SUPR_RM() macros

PATCH Applied Ani Sinha 2 participants 2 messages Apr 21, 2020 – Apr 23, 2020 PCI

lore
Share & tools
lore

Ani Sinha

author
#0 lore raw

PATCH 1/1 PCI: pciehp: Cleanup unused EMI() and HP_SUPR_RM() macros

We do not use PCIE hotplug surprise (PCI_EXP_SLTCAP_HPS) bit anymore. Consequently HP_SUPR_RM() macro is no longer used. Let's clean it up. EMI() macro also seems to be unused. So removing it as well. Thanks Mika Westerberg <[email protected]> for pointing it out.

---
 drivers/pci/hotplug/pciehp.h | 2 --
 1 file changed, 2 deletions(-)
drivers/pci/hotplug/pciehp.h +0 -2
index ae44f46..4fd200d 100644
@@ -148,8 +148,6 @@ struct controller {
 #define MRL_SENS(ctrl)		((ctrl)->slot_cap & PCI_EXP_SLTCAP_MRLSP)
 #define ATTN_LED(ctrl)		((ctrl)->slot_cap & PCI_EXP_SLTCAP_AIP)
 #define PWR_LED(ctrl)		((ctrl)->slot_cap & PCI_EXP_SLTCAP_PIP)
-#define HP_SUPR_RM(ctrl)	((ctrl)->slot_cap & PCI_EXP_SLTCAP_HPS)
-#define EMI(ctrl)		((ctrl)->slot_cap & PCI_EXP_SLTCAP_EIP)
 #define NO_CMD_CMPL(ctrl)	((ctrl)->slot_cap & PCI_EXP_SLTCAP_NCCS)
 #define PSN(ctrl)		(((ctrl)->slot_cap & PCI_EXP_SLTCAP_PSN) >> 19)
 
Signature · 1 line
2.7.4
#1 lore raw
Quoted 8 lines · Ani Sinha

We do not use PCIE hotplug surprise (PCI_EXP_SLTCAP_HPS) bit anymore. Consequently HP_SUPR_RM() macro is no longer used. Let's clean it up. EMI() macro also seems to be unused. So removing it as well. Thanks Mika Westerberg <[email protected]> for pointing it out.

Applied to pci/hotplug for v5.8, thanks!

Quoted 20 lines
---
 drivers/pci/hotplug/pciehp.h | 2 --
 1 file changed, 2 deletions(-)
drivers/pci/hotplug/pciehp.h +0 -2
index ae44f46..4fd200d 100644
@@ -148,8 +148,6 @@ struct controller {
 #define MRL_SENS(ctrl)		((ctrl)->slot_cap & PCI_EXP_SLTCAP_MRLSP)
 #define ATTN_LED(ctrl)		((ctrl)->slot_cap & PCI_EXP_SLTCAP_AIP)
 #define PWR_LED(ctrl)		((ctrl)->slot_cap & PCI_EXP_SLTCAP_PIP)
-#define HP_SUPR_RM(ctrl)	((ctrl)->slot_cap & PCI_EXP_SLTCAP_HPS)
-#define EMI(ctrl)		((ctrl)->slot_cap & PCI_EXP_SLTCAP_EIP)
 #define NO_CMD_CMPL(ctrl)	((ctrl)->slot_cap & PCI_EXP_SLTCAP_NCCS)
 #define PSN(ctrl)		(((ctrl)->slot_cap & PCI_EXP_SLTCAP_PSN) >> 19)
 
Signature · 1 line
2.7.4