2009-10-05 06:24:55 gpio_request PG0 failure
Harbhajan Singh (INDIA)
Message: 80830
Hi,
I am working with ADSP-BF527 0.2 custom board
uClinux-Distribution - uClinux-dist-2009R1-RC1.
PG0 is interfaced with the IR demodulator. I want to use this PG0 as GPIO and as GPIO Interrupt.
I am getting the kernel message as follows,
bfin-gpio: GPIO 16 is already reserved by custom_GPIO! (Documentation/blackfin/bfin-gpio-notes.txt).
But I have not used that pin in any other driver module.
Please tell me why this message is coming. how to resolve this problem.
Thank you.
QuoteReplyEditDelete
2009-10-05 06:34:57 gpio_request PG0 failure
Michael Hennerich (GERMANY)
Message: 80831 I'm sure you have.
Try:
uclinux-dist-trunk/linux-2.6.x> grep -R custom_GPIO *
-Michael
QuoteReplyEditDelete
2009-10-05 08:22:43 Re: gpio_request PG0 failure
Harbhajan Singh (INDIA)
Message: 80833
Hi Micheal,
I am not using it anywhere, i checked once again.
can you guide where could be the poblem.
-Thank you
QuoteReplyEditDelete
2009-10-05 11:18:31 Re: gpio_request PG0 failure
Michael Hennerich (GERMANY)
Message: 80852 >can you guide where could be the poblem.
I already did - the problem is in your code somewhere.
To figure out where this request originates
Do something like this in bfin_gpio_request:
Index: arch/blackfin/kernel/bfin_gpio.c
===================================================================
--- arch/blackfin/kernel/bfin_gpio.c (revision 7395)
+++ arch/blackfin/kernel/bfin_gpio.c (working copy)
@@ -925,6 +925,9 @@
{
unsigned long flags;
+ if (strcmp("custom_GPIO", label) == 0)
+ dump_stack();
+
if (check_gpio(gpio) < 0)
return -EINVAL;
-Michael
QuoteReplyEditDelete
2009-10-05 11:19:33 Re: gpio_request PG0 failure
Robin Getz (UNITED STATES)
Message: 80853
Harbhajan:
You may not think you are using it - but something in your kernel is - or you would not get the error. Did you run the command like Michael asked? If you didn't -- there isn't much we can do.
-Robin