From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 10 13:07:41 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D35CD16A41F; Thu, 10 Nov 2005 13:07:41 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB42B43D45; Thu, 10 Nov 2005 13:07:40 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-37-194.daxnet.no ([193.217.37.194] verified) by mailfe05.swip.net (CommuniGate Pro SMTP 4.3.8) with ESMTP id 7393672; Thu, 10 Nov 2005 14:07:37 +0100 From: Hans Petter Selasky To: freebsd-hackers@freebsd.org Date: Thu, 10 Nov 2005 14:08:49 +0100 User-Agent: KMail/1.7 References: <437309BD.7010704@FreeBSD.org> In-Reply-To: <437309BD.7010704@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511101408.51423.hselasky@c2i.net> Cc: Alexander Nedotsukov Subject: Re: No interrupts coming to device driver. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2005 13:07:42 -0000 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? Else sharing some of the source code might help. --HPS