Skip to contentSkip to conversation

PCI: Export pci_pio_to_address() for module use

PATCH In review Jianjun Wang 2 participants 3 messages Dec 2, 2020 – Dec 3, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: Export pci_pio_to_address() for module use

This interface will be used by PCI host drivers for PIO translation, export it to support compiling those drivers as kernel modules.

---
 drivers/pci/pci.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/pci.c +1 -0
index a458c46d7e39..509008899182 100644
@@ -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)
 {
Signature · 1 line
2.25.1
#1 lore raw
Quoted 4 lines · Jianjun Wang

This interface will be used by PCI host drivers for PIO translation, export it to support compiling those drivers as kernel modules.

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.

Quoted 19 lines
---
 drivers/pci/pci.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/pci.c +1 -0
index a458c46d7e39..509008899182 100644
@@ -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)
 {
Signature · 1 line
2.25.1

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

#2 lore raw
Quoted 9 lines · Bjorn Helgaas
Quoted 4 lines · Jianjun Wang

This interface will be used by PCI host drivers for PIO translation, export it to support compiling those drivers as kernel modules.

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.

Quoted 15 lines
Quoted 15 lines
---
 drivers/pci/pci.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/pci.c +1 -0
index a458c46d7e39..509008899182 100644
@@ -4003,6 +4003,7 @@ phys_addr_t pci_pio_to_address(unsigned long pio)
 
 	return address;
 }
+EXPORT_SYMBOL(pci_pio_to_address);
 
Quoted 5 lines
Quoted 5 lines
drivers/pci/pci.c +0 -0
 unsigned long __weak pci_address_to_pio(phys_addr_t address)
 {
Signature · 1 line
2.25.1

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek