linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Allow pci_enable_ptm to be called outside of the pci subsystem
@ 2016-08-25  3:41 Yong, Jonathan
  2016-08-25  3:41 ` [PATCH] PCI: Export pci_enable_ptm Yong, Jonathan
  0 siblings, 1 reply; 3+ messages in thread
From: Yong, Jonathan @ 2016-08-25  3:41 UTC (permalink / raw)
  To: linux-pci; +Cc: linux-kernel, bhelgaas, jonathan.yong

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(+)

-- 
2.7.3

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] PCI: Export pci_enable_ptm
  2016-08-25  3:41 [PATCH] Allow pci_enable_ptm to be called outside of the pci subsystem Yong, Jonathan
@ 2016-08-25  3:41 ` Yong, Jonathan
  2016-08-25 13:33   ` Bjorn Helgaas
  0 siblings, 1 reply; 3+ messages in thread
From: Yong, Jonathan @ 2016-08-25  3:41 UTC (permalink / raw)
  To: linux-pci; +Cc: linux-kernel, bhelgaas, jonathan.yong

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

Signed-off-by: Yong, Jonathan <jonathan.yong@intel.com>
---
 drivers/pci/pcie/ptm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pci/pcie/ptm.c b/drivers/pci/pcie/ptm.c
index 3b83024..bab8ac6 100644
--- a/drivers/pci/pcie/ptm.c
+++ b/drivers/pci/pcie/ptm.c
@@ -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);
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] PCI: Export pci_enable_ptm
  2016-08-25  3:41 ` [PATCH] PCI: Export pci_enable_ptm Yong, Jonathan
@ 2016-08-25 13:33   ` Bjorn Helgaas
  0 siblings, 0 replies; 3+ messages in thread
From: Bjorn Helgaas @ 2016-08-25 13:33 UTC (permalink / raw)
  To: Yong, Jonathan; +Cc: linux-pci, linux-kernel, bhelgaas

On Thu, Aug 25, 2016 at 03:41:35AM +0000, Yong, Jonathan wrote:
> Export symbol so device drivers outside of the core pci subsystem
> can use it.
> 
> Signed-off-by: Yong, Jonathan <jonathan.yong@intel.com>
> ---
>  drivers/pci/pcie/ptm.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/pci/pcie/ptm.c b/drivers/pci/pcie/ptm.c
> index 3b83024..bab8ac6 100644
> --- a/drivers/pci/pcie/ptm.c
> +++ b/drivers/pci/pcie/ptm.c
> @@ -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!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-25 13:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-25  3:41 [PATCH] Allow pci_enable_ptm to be called outside of the pci subsystem Yong, Jonathan
2016-08-25  3:41 ` [PATCH] PCI: Export pci_enable_ptm Yong, Jonathan
2016-08-25 13:33   ` Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).