Skip to contentSkip to conversation

bus: mbus: export mvebu_mbus_{add,del}_window for modules

PATCH In review Vadym Kochan 2 participants 4 messages Mar 24, 2020 – Apr 8, 2020 Arm/Marvell Dove/MV78xx0/Orion SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bus: mbus: export mvebu_mbus_{add,del}_window for modules

Allow to add/del remap window by external modules at runtime.

---
 drivers/bus/mvebu-mbus.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/bus/mvebu-mbus.c +2 -0
index 5b2a11a88951..3b443748a469 100644
@@ -914,6 +914,7 @@ int mvebu_mbus_add_window_remap_by_id(unsigned int target,
 
 	return mvebu_mbus_alloc_window(s, base, size, remap, target, attribute);
 }
+EXPORT_SYMBOL_GPL(mvebu_mbus_add_window_remap_by_id);
 
 int mvebu_mbus_add_window_by_id(unsigned int target, unsigned int attribute,
 				phys_addr_t base, size_t size)
@@ -933,6 +934,7 @@ int mvebu_mbus_del_window(phys_addr_t base, size_t size)
 	mvebu_mbus_disable_window(&mbus_state, win);
 	return 0;
 }
+EXPORT_SYMBOL_GPL(mvebu_mbus_del_window);
 
 void mvebu_mbus_get_pcie_mem_aperture(struct resource *res)
 {
Signature · 1 line
2.17.1
#1 lore raw
Quoted 1 line · Vadym Kochan

Allow to add/del remap window by external modules at runtime.

Please send this together with your driver submission.

#2 lore raw

Hi Christoph,

Quoted 4 lines · Christoph Hellwig
Quoted 1 line · Vadym Kochan

Allow to add/del remap window by external modules at runtime.

Please send this together with your driver submission.

The driver itself is just servicing user process to configure io windows via ioctl, so I think it is not so useful ?

Thanks,
Vadym Kochan

#3 lore raw
Quoted 10 lines · Vadym Kochan

Hi Christoph,

Quoted 4 lines · Christoph Hellwig
Quoted 1 line · Vadym Kochan

Allow to add/del remap window by external modules at runtime.

Please send this together with your driver submission.

The driver itself is just servicing user process to configure io windows via ioctl, so I think it is not so useful ?

If you want the export in mainline your driver needs to be as well.