2008-04-17 06:16:54     request_irq of GPIO_PFx after request failed in 08R1-RC8

Document created by Aaronwu Employee on Aug 6, 2013
Version 1Show Document
  • View in full screen mode

2008-04-17 06:16:54     request_irq of GPIO_PFx after request failed in 08R1-RC8

Wei Jiang (CHINA)

Message: 54405    Dear all,

   Look at this code:

 

    gpio_request(gpio, DRV_NAME);      //success

    gpio_direction_input(gpio);  

    request_irq(gpio_to_irq(gpio),....,XX_NAME,....); //always failed.

  

    The error message is

    "bfin-gpio: GPIO xx is already reserved by DRV_NAME !"

    Maybe there is "request gpio code"  in  request_irq  function?

     Then how can I use the interrupt of the GPIO_PF?

    Thank you.

              Wei Jiang

QuoteReplyEditDelete

 

 

2008-04-17 06:43:04     Re: request_irq of GPIO_PFx after request failed in 08R1-RC8

Wei Jiang (CHINA)

Message: 54407    To  Michael Hennerich,

    I saw that you said:

    "So You are using trunk ... This is a know issue

 

    See here:

   [#3919] Allow concurrent use of GPIO and GPIO IRQ

https://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_id=328&tracker_item_id=3919

 

 

For now please use 2008R1

 

-Michael"

     Actually I'm using the 08R1-RC8 kernel now. This bug exists too:)

               Wei Jiang

QuoteReplyEditDelete

 

 

2008-04-17 06:55:53     Re: request_irq of GPIO_PFx after request failed in 08R1-RC8

Michael Hennerich (GERMANY)

Message: 54409    What are you trying to do?

Request IRQ and then read current state, using GPIO API?

 

For now:

Simply request the IRQ and then read without requesting  the GPIO.

Also don't call gpio_direction_input(gpio)., because request IRQ will set the GPIO as input.

 

-Michael

QuoteReplyEditDelete

 

 

2008-04-17 07:19:19     Re: request_irq of GPIO_PFx after request failed in 08R1-RC8

Wei Jiang (CHINA)

Message: 54410    Dear Michael,

   So sorry for my poor English:) I used this method because  of "gpio_keys.c"

   Now I saw the file "mach-common/ints-priority.c" and know how it works.It should not be a bug.

   Thanks very much.

        Wei Jianga

Attachments

    Outcomes