Skip to contentSkip to conversation

Allow pci_enable_ptm to be called outside of the pci subsystem

PATCH New Yong, Jonathan 2 participants 3 messages Aug 25, 2016 PCI

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 PCI: Export pci_enable_ptm

In reply to Yong, Jonathan

Export symbol so device drivers outside of the core pci subsystem can use it.

---
 drivers/pci/pcie/ptm.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/pcie/ptm.c +1 -0
index 3b83024..bab8ac6 100644
@@ -139,3 +139,4 @@ int pci_enable_ptm(struct pci_dev *dev, u8 *granularity)
 		*granularity = dev->ptm_granularity;
 	return 0;
 }
+EXPORT_SYMBOL(pci_enable_ptm);
Signature · 1 line
2.7.3
#0 lore raw

PATCH 1/1 Allow pci_enable_ptm to be called outside of the pci subsystem

Allow external drivers to enable PTM bits on their respective devices. Please CC me when replying, thanks.

Yong, Jonathan (1):
PCI: Export pci_enable_ptm

 drivers/pci/pcie/ptm.c | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
2.7.3
#2 lore raw

Re: [PATCH] PCI: Export pci_enable_ptm

In reply to Yong, Jonathan
Quoted 13 lines · Jonathan

Export symbol so device drivers outside of the core pci subsystem can use it.

---
 drivers/pci/pcie/ptm.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/pcie/ptm.c +0 -0
index 3b83024..bab8ac6 100644

drivers/pci/pcie/ptm.c int pci_enable_ptm(struct pci_dev *dev, u8 *granularity) · line 142

Quoted 4 lines
drivers/pci/pcie/ptm.c +1 -0
@@ -139,3 +139,4 @@ int pci_enable_ptm(struct pci_dev *dev, u8 *granularity)
 		*granularity = dev->ptm_granularity;
 	return 0;
 }
+EXPORT_SYMBOL(pci_enable_ptm);

I just folded this into the original patch on the pci/ptm branch, since it hasn't been merged anywhere. Thanks!