linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RESEND: Generating interrupts from a USB device driver?
@ 2013-09-02 22:46 Daniel Santos
  2013-09-02 23:07 ` Greg KH
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Santos @ 2013-09-02 22:46 UTC (permalink / raw)
  To: LKML, linux-gpio, linux-usb, linux-spi

Hello guys.  I didn't get a response the last time so hopefully with 
3.11 out I'll get one this time.

I need to be able to generate interrupts from a USB device driver while 
servicing the complete() function of an interrupt URB. While I realize 
that this may seem strange, the purpose is for a USB to SPI/GPIO bridge 
chip (the MCP2210). When something happens on the remote device where a 
chip is expecting it's interrupt out pin to trigger an interrupt on some 
local (to the board) microcontroller, the MCP2210 instead receives that 
signal and communicates it to the host the next time it's queried. This 
is the interrupt that I need to, in effect propagate locally. Since my 
spi_master and gpio_chip are all functioning now, this is the last step 
to get one of my spi protocol drivers working correctly.

I've been reading up on Documentation/IRQ-domain.txt, but IRQ 
controllers are all new to me and there's a lot for me to learn, so I 
just want to make sure I'm going down the correct path. Is the correct 
method to create an IRQ domain with irq_domain_add_linear() or some 
such? I can figure it out eventually, but if somebody can point me in 
the right direction, it can save me a WHOLE lot of time.

Thanks in advance
Daniel


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-09-03 20:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-02 22:46 RESEND: Generating interrupts from a USB device driver? Daniel Santos
2013-09-02 23:07 ` Greg KH
     [not found]   ` <20130902230738.GA22494-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2013-09-03  1:40     ` Daniel Santos
2013-09-03 17:59       ` Greg KH
2013-09-03 19:10         ` Daniel Santos
2013-09-03 20:00   ` RESEND: Generating interrupts from a USB device driver? (USB to SPI/GPIO bridge) Daniel Santos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).