2008-06-14 08:02:55     using two driver at a time

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

2008-06-14 08:02:55     using two driver at a time

Pranay Upadhyay (INDIA)

Message: 57299   

 

Hello all,

 

   In application code I am using the two driver ppi0 and ppi1 for  video in and out. I have write the ppi1 driver for video out and ppi0 driver for video in.In application code I am openning the both driver and reading and writing the frame from video.But after reading and writting one frame there is no interrupt, and hanged on read function in ppi0 driver.I am guessing that there is problem in the IRQ line.Because both the driver using the same line, so problemming is coming. So i am dreciding that, can we use shared interrupt line for both the driver.Please reply.I am studying the driver development book, where too many possibility is given which is reason for the problem I am getting in my driver.For in and out ppi0 and ppi1 driver is working properly in my case. Please reply.

 

-Thanka & Regards

 

pranay

QuoteReplyEditDelete

 

 

2008-06-14 10:05:25     Re: using two driver at a time

Yi Li (CHINA)

Message: 57302   

 

To simply answer your question: "can we use shared interrupt line for both the driver", the answer is Yes. Linux interrup handler framework allows  to register multiple handlers for the same IRQ. When this IRQ happens, the handles will be invoked one by one. Please also read: http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:interrupts.

Attachments

    Outcomes