LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
LinkBack Search this Thread
Old 05-04-2006, 07:10 AM   #1
sateeshalla
LQ Newbie
 
Registered: May 2006
Posts: 1

Rep: Reputation: 0
control is not going to interrupt handler when interrupt comes in serial driver


Hai all,
presently i am writing serial driver in linux 2.6,i have enable interrupts,interrupt identification regester is being updated corructly,but interrupt handler is not being invocked.

First i thought that may be generic serial driver's interrupt handler is being invocked when ever an interrupt comes on
IRQ line 4,so i compiled the kernel and made serial driver as module
and i removed it from kernel. Even after also my serial driver's interrupt handler is not invocked.

Please help me to get rid of this problem,

............THANK YOU
 
Old 05-04-2006, 09:43 AM   #2
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,047

Rep: Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953
As I said earlier... look in the source-code itself for examples. There must be a bug in your code somewhere, and how exactly are we supposed to help find it? We can't even see it from here.

It is necessarily true that, if you have properly put the right values into the device registers such that it does generate a hardware interrupt .. never assume .. at least the first-level interrupt handler will get called. But that's only the first of a few dozen places where your code could contain a subtle flaw.

Putting the thing as a module, at least for now, certainly should make it easier to debug... as long as your code properly handles removal.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Interrupt Handler lucky6969b Linux - Software 1 12-01-2005 11:55 AM
printk in the interrupt handler lordofring Programming 3 08-23-2005 08:00 PM
<0>Kernel panic: Aiee, killing interrupt handler! In interrupt handler - not syncing mrb Linux - Newbie 2 01-09-2005 09:47 AM
Why this interrupt handler does not work? opereira Programming 1 03-04-2004 01:37 PM
Serial Port Driver- Interrupt Invoking Problem sinux Linux - Software 0 03-07-2003 03:47 PM


All times are GMT -5. The time now is 12:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration