* [v1] PCI: Export pci_pio_to_address() for module use
@ 2020-12-02 13:12 Jianjun Wang
2020-12-02 13:49 ` Bjorn Helgaas
0 siblings, 1 reply; 3+ messages in thread
From: Jianjun Wang @ 2020-12-02 13:12 UTC (permalink / raw)
To: Bjorn Helgaas, Matthias Brugger
Cc: linux-pci, linux-kernel, linux-arm-kernel, linux-mediatek,
youlin.pei, Sj Huang, jianjun.wang
This interface will be used by PCI host drivers for PIO translation,
export it to support compiling those drivers as kernel modules.
Signed-off-by: Jianjun Wang <jianjun.wang@mediatek.com>
---
drivers/pci/pci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index a458c46d7e39..509008899182 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -4003,6 +4003,7 @@ phys_addr_t pci_pio_to_address(unsigned long pio)
return address;
}
+EXPORT_SYMBOL(pci_pio_to_address);
unsigned long __weak pci_address_to_pio(phys_addr_t address)
{
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [v1] PCI: Export pci_pio_to_address() for module use
2020-12-02 13:12 [v1] PCI: Export pci_pio_to_address() for module use Jianjun Wang
@ 2020-12-02 13:49 ` Bjorn Helgaas
2020-12-03 3:48 ` Jianjun Wang
0 siblings, 1 reply; 3+ messages in thread
From: Bjorn Helgaas @ 2020-12-02 13:49 UTC (permalink / raw)
To: Jianjun Wang
Cc: Bjorn Helgaas, Matthias Brugger, linux-pci, linux-kernel,
linux-arm-kernel, linux-mediatek, youlin.pei, Sj Huang
On Wed, Dec 02, 2020 at 09:12:55PM +0800, Jianjun Wang wrote:
> This interface will be used by PCI host drivers for PIO translation,
> export it to support compiling those drivers as kernel modules.
>
> Signed-off-by: Jianjun Wang <jianjun.wang@mediatek.com>
Please include this in a series that adds a modular host driver or
converts an existing one to be modular. That way we know we have at
least one user and things get merged in the right order.
> ---
> drivers/pci/pci.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
> index a458c46d7e39..509008899182 100644
> --- a/drivers/pci/pci.c
> +++ b/drivers/pci/pci.c
> @@ -4003,6 +4003,7 @@ phys_addr_t pci_pio_to_address(unsigned long pio)
>
> return address;
> }
> +EXPORT_SYMBOL(pci_pio_to_address);
>
> unsigned long __weak pci_address_to_pio(phys_addr_t address)
> {
> --
> 2.25.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [v1] PCI: Export pci_pio_to_address() for module use
2020-12-02 13:49 ` Bjorn Helgaas
@ 2020-12-03 3:48 ` Jianjun Wang
0 siblings, 0 replies; 3+ messages in thread
From: Jianjun Wang @ 2020-12-03 3:48 UTC (permalink / raw)
To: Bjorn Helgaas
Cc: Bjorn Helgaas, Matthias Brugger, linux-pci, linux-kernel,
linux-arm-kernel, linux-mediatek, youlin.pei, Sj Huang
On Wed, 2020-12-02 at 07:49 -0600, Bjorn Helgaas wrote:
> On Wed, Dec 02, 2020 at 09:12:55PM +0800, Jianjun Wang wrote:
> > This interface will be used by PCI host drivers for PIO translation,
> > export it to support compiling those drivers as kernel modules.
> >
> > Signed-off-by: Jianjun Wang <jianjun.wang@mediatek.com>
>
> Please include this in a series that adds a modular host driver or
> converts an existing one to be modular. That way we know we have at
> least one user and things get merged in the right order.
Hi Bjorn,
OK, I will include this patch in the next version of pcie-mediatek-gen3
series.
thanks.
>
> > ---
> > drivers/pci/pci.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
> > index a458c46d7e39..509008899182 100644
> > --- a/drivers/pci/pci.c
> > +++ b/drivers/pci/pci.c
> > @@ -4003,6 +4003,7 @@ phys_addr_t pci_pio_to_address(unsigned long pio)
> >
> > return address;
> > }
> > +EXPORT_SYMBOL(pci_pio_to_address);
> >
> > unsigned long __weak pci_address_to_pio(phys_addr_t address)
> > {
> > --
> > 2.25.1
> >
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-12-03 3:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-02 13:12 [v1] PCI: Export pci_pio_to_address() for module use Jianjun Wang
2020-12-02 13:49 ` Bjorn Helgaas
2020-12-03 3:48 ` Jianjun Wang
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).