bus: mbus: export mvebu_mbus_{add,del}_window for modules
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
@@ -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
Quoted 1 line · Vadym Kochan
Allow to add/del remap window by external modules at runtime.
Please send this together with your driver submission.
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
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.