drivers: bcma: export bcma_core_disable() function
PATCH 1/1 drivers: bcma: export bcma_core_disable() function
In the brcm80211 driver we disable the 80211 core when the driver is 'down'. The bcma_core_disable() function exactly does the same as our implementation so exporting this function makes sense.
--- drivers/bcma/core.c | 3 ++- include/linux/bcma/bcma.h | 1 + 2 files changed, 3 insertions(+), 1 deletions(-)
drivers/bcma/core.c +2 -1
@@ -19,7 +19,7 @@ bool bcma_core_is_enabled(struct bcma_device *core) }EXPORT_SYMBOL_GPL (bcma_core_is_enabled); -static void bcma_core_disable (struct bcma_device *core,u32 flags) +void bcma_core_disable (struct bcma_device *core,u32 flags) {if (bcma_aread32 (core,BCMA_RESET_CTL ) &BCMA_RESET_CTL_RESET )return ;
@@ -31,6 +31,7 @@ static void bcma_core_disable(struct bcma_device *core, u32 flags)bcma_awrite32 (core,BCMA_RESET_CTL ,BCMA_RESET_CTL_RESET );udelay (1 ); } +EXPORT_SYMBOL_GPL (bcma_core_disable);int bcma_core_enable (struct bcma_device *core,u32 flags) {
include/linux/bcma/bcma.h +1 -0
@@ -244,6 +244,7 @@ void bcma_awrite32(struct bcma_device *core, u16 offset, u32 value) }extern bool bcma_core_is_enabled (struct bcma_device *core); +extern void bcma_core_disable (struct bcma_device *core,u32 flags);extern int bcma_core_enable (struct bcma_device *core,u32 flags);#endif /* LINUX_BCMA_H_ */
Signature · 1 line
1.7.4.1
Rafał Miłecki
maintainer2011/6/9 Arend van Spriel <[email protected]>:
Quoted 3 lines
In the brcm80211 driver we disable the 80211 core when the driver is 'down'. The
bcma_core_disable()function exactly does the same as our implementation so exporting this function makes sense.
Michael said we should not do do such a exporting without getting users within the same patch serie.
Signature · 1 line
Rafał
Quoted 6 lines · Rafał Miłecki
2011/6/9 Arend van Spriel<[email protected]>:
Quoted 3 lines
In the brcm80211 driver we disable the 80211 core when the driver is 'down'. The
bcma_core_disable()function exactly does the same as our implementation so exporting this function makes sense.Michael said we should not do do such a exporting without getting users within the same patch serie.
Hi Rafał,
That is going to be hard for me despite my willingness to comply. Our driver is still in staging so we submit our brcm80211 patches to Greg KH. I figured it would be better to do submit patches for bcma on wireless repository.
Gr. AvS
Signature · 2 lines
Almost nobody dances sober, unless they happen to be insane. -- H.P. Lovecraft --
Quoted 6 lines · On Fri, 10 Jun 2011 13:46:52 +0200 "Arend van Spriel" <[email protected]>…
Quoted 2 lines
Michael said we should not do do such a exporting without getting users within the same patch serie.
That is going to be hard for me despite my willingness to comply. Our driver is still in staging so we submit our brcm80211 patches to Greg KH. I figured it would be better to do submit patches for bcma on wireless repository.
There are no rules without exceptions ;-)
Quoted 10 lines · Michael Büsch
Quoted 6 lines · On Fri, 10 Jun 2011 13:46:52 +0200 "Arend van Spriel" <[email protected]>…
Quoted 2 lines
Michael said we should not do do such a exporting without getting users within the same patch serie.
That is going to be hard for me despite my willingness to comply. Our driver is still in staging so we submit our brcm80211 patches to Greg KH. I figured it would be better to do submit patches for bcma on wireless repository.
There are no rules without exceptions ;-)
Right, so I don't really mind taking it. OTOH, maybe Greg could just carry the patch in his staging tree...?
John
Signature · 2 lines
John W. Linville Someday the world will need a hero, and you [email protected] might be all we have. Be ready.
Quoted 9 lines · John W. Linville
Quoted 8 lines · Michael Büsch
Quoted 6 lines · On Fri, 10 Jun 2011 13:46:52 +0200 "Arend van Spriel"<[email protected]>…
Quoted 2 lines
Michael said we should not do do such a exporting without getting users within the same patch serie.
That is going to be hard for me despite my willingness to comply. Our driver is still in staging so we submit our brcm80211 patches to Greg KH. I figured it would be better to do submit patches for bcma on wireless repository.
Quoted 5 lines
Quoted 1 line
There are no rules without exceptions ;-)
Right, so I don't really mind taking it. OTOH, maybe Greg could just carry the patch in his staging tree...?
John
Thanks, John
I leave it up to Rafał and Michael to decide. Both ways are fine by me.
Gr. AvS
Signature · 2 lines
Almost nobody dances sober, unless they happen to be insane. -- H.P. Lovecraft --
Rafał Miłecki
maintainerW dniu 10 czerwca 2011 18:29 użytkownik Arend van Spriel
Quoted 17 lines · <[email protected]> napisał:
Quoted 16 lines · John W. Linville
Quoted 13 lines · Michael Büsch
Quoted 8 lines · On Fri, 10 Jun 2011 13:46:52 +0200 "Arend van Spriel"<[email protected]>…
Quoted 3 lines
Michael said we should not do do such a exporting without getting users within the same patch serie.
That is going to be hard for me despite my willingness to comply. Our driver is still in staging so we submit our brcm80211 patches to Greg KH. I figured it would be better to do submit patches for bcma on wireless repository.
There are no rules without exceptions ;-)
Quoted 8 lines
Quoted 4 lines
Right, so I don't really mind taking it. OTOH, maybe Greg could just carry the patch in his staging tree...?
John
Thanks, John
I leave it up to Rafał and Michael to decide. Both ways are fine by me.
Please, take it to wireless tree. I'm going to need this in b43 soon anyway.
Signature · 1 line
Rafał
Rafał Miłecki
maintainerPATCH 1/1 bcma: clean exports of functions
In reply to Arend van SprielI forgot to export function disabling core, which is obviously required by drivers. Function managing IRQs will be also needed soon. On the other side we do not expect writing any hosts drivers outside of bcma, so this is safe to do not export functions related to this.
---
John, if you didn't take "bcma: export bcma_core_disable() function" yet, can you take this one instead?
--- drivers/bcma/bcma_private.h | 4 ++-- drivers/bcma/core.c | 3 ++- drivers/bcma/driver_pci.c | 1 + drivers/bcma/main.c | 2 -- include/linux/bcma/bcma.h | 1 + include/linux/bcma/bcma_driver_pci.h | 2 ++ 6 files changed, 8 insertions(+), 5 deletions(-)
drivers/bcma/bcma_private.h +2 -2
@@ -13,8 +13,8 @@struct bcma_bus ;/* main.c */ -extern int bcma_bus_register (struct bcma_bus *bus); -extern void bcma_bus_unregister (struct bcma_bus *bus); +int bcma_bus_register (struct bcma_bus *bus); +void bcma_bus_unregister (struct bcma_bus *bus);/* scan.c */ int bcma_bus_scan (struct bcma_bus *bus);
drivers/bcma/core.c +2 -1
@@ -19,7 +19,7 @@ bool bcma_core_is_enabled(struct bcma_device *core) }EXPORT_SYMBOL_GPL (bcma_core_is_enabled); -static void bcma_core_disable (struct bcma_device *core,u32 flags) +void bcma_core_disable (struct bcma_device *core,u32 flags) {if (bcma_aread32 (core,BCMA_RESET_CTL ) &BCMA_RESET_CTL_RESET )return ;
@@ -31,6 +31,7 @@ static void bcma_core_disable(struct bcma_device *core, u32 flags)bcma_awrite32 (core,BCMA_RESET_CTL ,BCMA_RESET_CTL_RESET );udelay (1 ); } +EXPORT_SYMBOL_GPL (bcma_core_disable);int bcma_core_enable (struct bcma_device *core,u32 flags) {
drivers/bcma/driver_pci.c +1 -0
@@ -184,3 +184,4 @@ int bcma_core_pci_irq_ctl(struct bcma_drv_pci *pc, struct bcma_device *core, out:return err; } +EXPORT_SYMBOL_GPL (bcma_core_pci_irq_ctl);
drivers/bcma/main.c +0 -2
@@ -160,13 +160,11 @@ int bcma_bus_register(struct bcma_bus *bus)return 0 ; } -EXPORT_SYMBOL_GPL (bcma_bus_register);void bcma_bus_unregister (struct bcma_bus *bus) {bcma_unregister_cores (bus); } -EXPORT_SYMBOL_GPL (bcma_bus_unregister);int __bcma_driver_register (struct bcma_driver *drv,struct module *owner) {
include/linux/bcma/bcma.h +1 -0
@@ -244,6 +244,7 @@ void bcma_awrite32(struct bcma_device *core, u16 offset, u32 value) }extern bool bcma_core_is_enabled (struct bcma_device *core); +extern void bcma_core_disable (struct bcma_device *core,u32 flags);extern int bcma_core_enable (struct bcma_device *core,u32 flags);#endif /* LINUX_BCMA_H_ */
include/linux/bcma/bcma_driver_pci.h +2 -0
@@ -85,5 +85,7 @@ struct bcma_drv_pci {#define pcicore_write32 (pc, offset, val) bcma_write32((pc)->core, offset, val)extern void bcma_core_pci_init (struct bcma_drv_pci *pc); +extern int bcma_core_pci_irq_ctl (struct bcma_drv_pci *pc, +struct bcma_device *core,bool enable);#endif /* LINUX_BCMA_DRIVER_PCI_H_ */
Signature · 1 line
1.7.3.4