* [PATCH] Export GPIO control symbols from mfp-pxa2xx.c @ 2009-05-11 6:43 Michael Abbott 2009-05-11 7:00 ` Christoph Hellwig 0 siblings, 1 reply; 5+ messages in thread From: Michael Abbott @ 2009-05-11 6:43 UTC (permalink / raw) To: linux-arm-kernel; +Cc: Linux Kernel Mailing List With very lightweight board support providing a number of uncommitted GPIO pins I found that my out of kernel driver needs to call symbols that aren't actually exported. This patch adds these exports. Date: Wed, 6 May 2009 12:47:22 +0100 Subject: [PATCH] Export GPIO control symbols from mfp-pxa2xx.c This allows modules to configure their own GPIO settings if this hasn't been done at the board level. Signed-off-by: Michael Abbott <michael.abbott@diamond.ac.uk> --- arch/arm/mach-pxa/mfp-pxa2xx.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-pxa/mfp-pxa2xx.c b/arch/arm/mach-pxa/mfp-pxa2xx.c index 33626de..3f2007a 100644 --- a/arch/arm/mach-pxa/mfp-pxa2xx.c +++ b/arch/arm/mach-pxa/mfp-pxa2xx.c @@ -384,3 +384,8 @@ static int __init pxa2xx_mfp_init(void) return sysdev_class_register(&pxa2xx_mfp_sysclass); } postcore_initcall(pxa2xx_mfp_init); + + +EXPORT_SYMBOL(pxa2xx_mfp_config); +EXPORT_SYMBOL(pxa2xx_mfp_set_lpm); +EXPORT_SYMBOL(gpio_set_wake); -- 1.6.1.3 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Export GPIO control symbols from mfp-pxa2xx.c 2009-05-11 6:43 [PATCH] Export GPIO control symbols from mfp-pxa2xx.c Michael Abbott @ 2009-05-11 7:00 ` Christoph Hellwig 2009-05-11 7:28 ` Michael Abbott 0 siblings, 1 reply; 5+ messages in thread From: Christoph Hellwig @ 2009-05-11 7:00 UTC (permalink / raw) To: Michael Abbott; +Cc: linux-arm-kernel, Linux Kernel Mailing List On Mon, May 11, 2009 at 07:43:29AM +0100, Michael Abbott wrote: > With very lightweight board support providing a number of uncommitted GPIO > pins I found that my out of kernel driver needs to call symbols that > aren't actually exported. This patch adds these exports. As usual we don't export symbols for out of tree drivers. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Export GPIO control symbols from mfp-pxa2xx.c 2009-05-11 7:00 ` Christoph Hellwig @ 2009-05-11 7:28 ` Michael Abbott 2009-05-11 14:39 ` Eric Miao 0 siblings, 1 reply; 5+ messages in thread From: Michael Abbott @ 2009-05-11 7:28 UTC (permalink / raw) To: Christoph Hellwig; +Cc: linux-arm-kernel, Linux Kernel Mailing List On Mon, 11 May 2009, Christoph Hellwig wrote: > On Mon, May 11, 2009 at 07:43:29AM +0100, Michael Abbott wrote: > > With very lightweight board support providing a number of uncommitted GPIO > > pins I found that my out of kernel driver needs to call symbols that > > aren't actually exported. This patch adds these exports. > As usual we don't export symbols for out of tree drivers. I understand that's the default condition, but presumably there's no compelling reason for the mfp configuration functions to be withheld (I was simply trying to obey the obsolescence instructions in pxa2xx-gpio.h!) As for bringing this driver in tree? Not a great deal of point, in this particular case, but I have no problem with doing that. P.S. For anybody watching this with linux-arm-kernel access -- my messages are sticking despite having apparently subscribed... ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Export GPIO control symbols from mfp-pxa2xx.c 2009-05-11 7:28 ` Michael Abbott @ 2009-05-11 14:39 ` Eric Miao 2009-05-11 15:08 ` Michael Abbott 0 siblings, 1 reply; 5+ messages in thread From: Eric Miao @ 2009-05-11 14:39 UTC (permalink / raw) To: Michael Abbott Cc: Christoph Hellwig, linux-arm-kernel, Linux Kernel Mailing List On Mon, May 11, 2009 at 3:28 PM, Michael Abbott <michael@araneidae.co.uk> wrote: > On Mon, 11 May 2009, Christoph Hellwig wrote: >> On Mon, May 11, 2009 at 07:43:29AM +0100, Michael Abbott wrote: >> > With very lightweight board support providing a number of uncommitted GPIO >> > pins I found that my out of kernel driver needs to call symbols that >> > aren't actually exported. This patch adds these exports. >> As usual we don't export symbols for out of tree drivers. > > I understand that's the default condition, but presumably there's no > compelling reason for the mfp configuration functions to be withheld (I > was simply trying to obey the obsolescence instructions in pxa2xx-gpio.h!) > > As for bringing this driver in tree? Not a great deal of point, in this > particular case, but I have no problem with doing that. > I don't see many real requirements here to export them for the moment. By keeping these functions/symbols not-exported, I'd expect board-specific code (usually manipulation of these pins are board-specific) to be kept in the "board.c" as well, which I do think is a good practice. Since your driver is out of the tree, you can certainly keep this change out of the tree as well :-) ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Export GPIO control symbols from mfp-pxa2xx.c 2009-05-11 14:39 ` Eric Miao @ 2009-05-11 15:08 ` Michael Abbott 0 siblings, 0 replies; 5+ messages in thread From: Michael Abbott @ 2009-05-11 15:08 UTC (permalink / raw) To: Eric Miao; +Cc: Christoph Hellwig, linux-arm-kernel, Linux Kernel Mailing List [-- Attachment #1: Type: TEXT/PLAIN, Size: 1697 bytes --] On Mon, 11 May 2009, Eric Miao wrote: > On Mon, May 11, 2009 at 3:28 PM, Michael Abbott <michael@araneidae.co.uk> wrote: > > On Mon, 11 May 2009, Christoph Hellwig wrote: > >> On Mon, May 11, 2009 at 07:43:29AM +0100, Michael Abbott wrote: > >> > With very lightweight board support providing a number of > >> > uncommitted GPIO pins I found that my out of kernel driver needs to > >> > call symbols that aren't actually exported. This patch adds these > >> > exports. > >> As usual we don't export symbols for out of tree drivers. > > > > I understand that's the default condition, but presumably there's no > > compelling reason for the mfp configuration functions to be withheld > > (I was simply trying to obey the obsolescence instructions in > > pxa2xx-gpio.h!) > > > > As for bringing this driver in tree? Not a great deal of point, in > > this particular case, but I have no problem with doing that. > > I don't see many real requirements here to export them for the moment. > By keeping these functions/symbols not-exported, I'd expect > board-specific code (usually manipulation of these pins are > board-specific) to be kept in the "board.c" as well, which I do think is > a good practice. That's kind of fair, but in the case where the board is a CPU module rather than an entire system (which applies both for my XCEP module, the Colibri modules, and others I'm sure) this isn't necessarily so straightforward. > Since your driver is out of the tree, you can certainly keep this change > out of the tree as well :-) Heh. There should be an emoticon for sticking my tongue out ;^). Ok, I can live with that for the time being. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-05-11 15:09 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2009-05-11 6:43 [PATCH] Export GPIO control symbols from mfp-pxa2xx.c Michael Abbott 2009-05-11 7:00 ` Christoph Hellwig 2009-05-11 7:28 ` Michael Abbott 2009-05-11 14:39 ` Eric Miao 2009-05-11 15:08 ` Michael Abbott
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®