Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1201454
| From | raghu MG <raghumag@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: Armadaxp GPIO interrupts |
| Date | 2015-08-06 08:00 +0200 |
| Message-ID | <pUmnE-8id-7@gated-at.bofh.it> (permalink) |
| References | <pTMDv-6sx-19@gated-at.bofh.it> <pTMDv-6sx-17@gated-at.bofh.it> <pTZ7H-8cP-3@gated-at.bofh.it> <pU9JM-6FB-21@gated-at.bofh.it> <pU9JM-6FB-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Andrew, My platform/board is ATCA carrier card which is getting interface to I/O card. The I/O card is hot-pluggable or Jack-in or Jack out. Also I/O card consists of hot-plugable SFP interface. These events are triggered using GPIO's So the events the carrier card recieves are 1) If I/O card is either Jacked-in or Jacked-out ,respective GPIO pin-x triggers an event 2) If SFP is pushed into I/O card the respective GPIO pin-y triggers an event. Another observation about "irq: Cannot allocate irq_descs @ IRQ47/79/111". This is warning & irq_descs are already allocated , the overall initialization/probe function doesn't get effected. mvebu_gpio_irq_handler is only called if I register a another handler at irq=82/83/84/85/87/88/89/90/92. I am registering this handler using minimal kernel module. My understanding of Linux IRQ/interrupt mechanism is limited to request_irq, but registering domain & then IRQ is bit not clear. Regards Raghu On Wed, Aug 5, 2015 at 9:51 PM, Andrew Lunn <andrew@lunn.ch> wrote: > On Wed, Aug 05, 2015 at 08:31:27PM +0530, raghu MG wrote: >> Hi Andrew, >> >> The issue I found was irq_alloc_descs is called twice >> 1st time inside mvebu_gpio_probe & 2nd time inside irq_domain_add_simple. > > So i'm somewhat confused. I just tested on my Kirkwood and 370 > platforms, and an Armada XP WRT1900AC using 4.2.0-rc5, all which use > the same gpio driver. > > They boot fine, the gpio driver is loaded, and the interrupt for the > gpio connected to a button are listed in /proc/interrupts. The > gpio-key driver is also able to use the gpio and the input-events > program does show events when i press the button. > > So what is different with your platform? > > Andrew -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Armadaxp GPIO interrupts Andrew Lunn <andrew@lunn.ch> - 2015-08-04 17:50 +0200
Re: Armadaxp GPIO interrupts raghu MG <raghumag@gmail.com> - 2015-08-05 07:10 +0200
Re: Armadaxp GPIO interrupts Andrew Lunn <andrew@lunn.ch> - 2015-08-05 18:30 +0200
Re: Armadaxp GPIO interrupts raghu MG <raghumag@gmail.com> - 2015-08-06 08:00 +0200
Re: Armadaxp GPIO interrupts Andrew Lunn <andrew@lunn.ch> - 2015-08-06 15:40 +0200
Re: Armadaxp GPIO interrupts raghu MG <raghumag@gmail.com> - 2015-08-06 19:00 +0200
Re: Armadaxp GPIO interrupts Andrew Lunn <andrew@lunn.ch> - 2015-08-06 19:30 +0200
Re: Armadaxp GPIO interrupts raghu MG <raghumag@gmail.com> - 2015-08-06 20:20 +0200
Re: Armadaxp GPIO interrupts raghu MG <raghumag@gmail.com> - 2015-08-07 23:00 +0200
Re: Armadaxp GPIO interrupts Andrew Lunn <andrew@lunn.ch> - 2015-08-08 00:20 +0200
Re: Armadaxp GPIO interrupts raghu MG <raghumag@gmail.com> - 2015-08-05 17:10 +0200
csiph-web