Hi Thomas, On Wed, Apr 21, 2010 at 17:40:29, Koeller, T. wrote: > From: Nori, Sekhar [mailto:[email protected]] > > > IRQ resources are managed by request_irq(). EDMA does its own resource > > management, but ideally should be using drivers/dma/ resource manager. > > This is not the kind of resource management I am talking about. You could > call request_irq() with any bogus irq number (similar for DMA) and not notice > that you are doing something wrong. You could attempt to set up an interrupt > as shared that is not sharable. Look at linux/ioport.h for a lot of stuff > designed to aid in avoiding such conflicts by proper use of resources.
I haven't seen any in-kernel driver where DMA and IRQ resources are reserved using linux/ioport.h. Can you point to any such code? A carefully placed typo should be able to trump any kind of resource management you put in place. But, I agree, if there is a way to make adding boards easy, that should be useful. Thanks, Sekhar _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
