From: Krzysztof Halasa Date: Wed, 20 May 2009 14:39:00 +0200 Subject: [ath9k-devel] PCI IRQ Pins In-Reply-To: <4A13EC76.3020206@hiramoto.org> (Karl Hiramoto's message of "Wed\, 20 May 2009 13\:41\:42 +0200") References: <4A13EC76.3020206@hiramoto.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Hi, Karl Hiramoto writes: > I'm using wireless testing with a mini-pci AR5416 on an arm xscale > ixp4xx. It seems the IRQ always comes on IRQ Pin A. Is there a way > to force the atheros AR5416 to use Pin B of the mini-pci? I don't have > access to a AR5416 datasheet to actually know if the chip has more than > one IRQ line. I'm not sure if this is possible to do in PCI or the > kernel either. It's usually impossible. It's a hardware thing - you would have to change the assignment in the AR chip itself (most PCI chips only have one IRQ line per function) or to use some extra on-board IRQ-mapping chip (which you most probably don't have). > This Pin A line is shared with a IDE htp371N chip which only has one IRQ > line. Sometimes (randomly) during boot i get the "IRQ X Nobody cared" > message. This usually happens right when the BLK_DEV_HPT366 or ath9k > driver is loaded. Probably one of those chips generates IRQ without this being expected by the driver (or the driver isn't yet loaded). > There seems to be some kind of race. If I have both the AR5416 and > HPT371N, loaded, and after the board has booted(everything is > configured), the "IRQ X Nobody cared" never occurs. If i remove > AR5416 mini-pci, I also never get the "IRQ X Nobody cared". You would have to investigate a) which chip generates the bogus IRQ, and b) how to clear it. Then you can clear the IRQ in the platform code, or using a PCI quirk code if it's not related to the platform. Unless this is a pure bug in a driver, of course. -- Krzysztof Halasa