linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* "Virtual" Interrupts -- Need help please
@ 2013-09-08  0:19 Daniel Santos
  2013-09-08  0:52 ` Guenter Roeck
  2013-09-09 11:06 ` Mark Brown
  0 siblings, 2 replies; 14+ messages in thread
From: Daniel Santos @ 2013-09-08  0:19 UTC (permalink / raw)
  To: linux-gpio, linux-usb, linux-spi, Samuel Ortiz, LKML,
	Thomas Gleixner

I've posted a number of requests for aid on this and have gotten very 
little responses and none that were helpful. I have spent at least 24 
hours of research time on this and just a little direction from somebody 
who knows this subsystem can help me immensely as the IRQ subsystem is 
new to me.

This is for the MCP2210 driver (a USB to SPI/GPIO bridge) and my driver 
is the first of its class for the Linux kernel, giving me less to look 
at as an example.  I intend to use standard drivers for whatever I have 
connected at the other end.  For this to work, I need to supply 
interrupts for some of these drivers to work correctly.  How do I do 
this? Every thing else on this driver is ready to go and my handler 
functions for this are empty and waiting for some code.

So do i create an IRQ domain and then call generic_handle_irq() from my 
URB complete() function? If so, which type of IRQ Domain is appropriate 
for this? Unlike typical platform devices, these are dynamically added 
and removed throughout the life of the kernel, adding to the challenge.  
So, if I understand correctly, my base IRQ number needs to be 
dynamically generated.  How should I manage this?

Finally, if you have any example drivers that are doing something 
similar, that would be SO very helpful as well!

I have some secondary (and less important) questions about how to 
integrate this with device drivers that want a DT / open firmware config 
(which I know almost nothing about at this time), but that can wait.

Any help *greatly* appreciated and thank you in advance!

Daniel

PS: If interested, my current driver here: 
https://github.com/daniel-santos/mcp2210-linux. I  haven't sought review 
yet because I want to finish it first.


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

end of thread, other threads:[~2013-09-11 17:59 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-08  0:19 "Virtual" Interrupts -- Need help please Daniel Santos
2013-09-08  0:52 ` Guenter Roeck
2013-09-08 23:50   ` Daniel Santos
2013-09-09  0:35     ` Guenter Roeck
2013-09-09 11:02       ` Mark Brown
2013-09-09 11:18         ` Alexander Holler
2013-09-09 11:45           ` Guenter Roeck
2013-09-09 12:00             ` Alexander Holler
2013-09-09 13:45           ` Mark Brown
     [not found]             ` <20130909134558.GY29403-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-09-09 14:21               ` Alexander Holler
2013-09-09 11:06 ` Mark Brown
2013-09-09 21:12   ` Daniel Santos
2013-09-10 18:01     ` Mark Brown
2013-09-11 17:59       ` 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).