Date: Fri, 11 Nov 2005 13:02:47 +0900 From: Alexander Nedotsukov <bland@FreeBSD.org> To: hselasky@c2i.net Cc: freebsd-hackers@FreeBSD.org Subject: Re: No interrupts coming to device driver. Message-ID: <437417E7.4090800@FreeBSD.org> In-Reply-To: <200511101408.51423.hselasky@c2i.net> References: <437309BD.7010704@FreeBSD.org> <200511101408.51423.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hans Petter Selasky wrote: > On Thursday 10 November 2005 09:50, Alexander Nedotsukov wrote: > >> Hi, >> >> I trying to create small lirc (www.lirc.org) compatible CIR driver for >> it8705 chip (sits on ISA bus). My problem is I can not get interrupts >> coming to driver. I believe I configured chip (carrier freq. + baudrate >> divisor) and enabled interrupt mode the same way it windows driver does. >> It also seems to be correct according to chip specs. But nothing. vmstat >> -i shows zeros for assigned irq. And my IRS stay cold. I wrote small >> userland program which polls CIRs IIR (interrupt identefication >> register) and it shows interrupt pending bit set on right after I press >> key on remote control. Looks like I missed something fundamental. Does >> anyone can give me a hint where to look? >> >> > > Sounds like you have an unacknowledged interrupt. Does it help if you call the > interrupt handler once after that your chip has been reset and configured? > Did you mean unacknowledged to chip or interrupt controller? Anyway calling interrupt handler right after initialization does not seem to help. > Else sharing some of the source code might help. > Here you are: http://bbnest.net/~bland/it87pub/ Alexander.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?437417E7.4090800>