From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751859AbWFTXU0 (ORCPT ); Tue, 20 Jun 2006 19:20:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751858AbWFTXU0 (ORCPT ); Tue, 20 Jun 2006 19:20:26 -0400 Received: from mail-in-09.arcor-online.net ([151.189.21.49]:46727 "EHLO mail-in-09.arcor-online.net") by vger.kernel.org with ESMTP id S1751375AbWFTXUZ (ORCPT ); Tue, 20 Jun 2006 19:20:25 -0400 Date: Wed, 21 Jun 2006 01:20:04 +0200 (CEST) From: Bodo Eggert <7eggert@gmx.de> To: Russell King cc: 7eggert@gmx.de, Alan Cox , Mark Lord , Chris Rankin , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: Linux 2.6.17: IRQ handler mismatch in serial code? In-Reply-To: <20060620180313.GC7463@flint.arm.linux.org.uk> Message-ID: References: <6pwmi-8mW-1@gated-at.bofh.it> <6px8R-Y7-43@gated-at.bofh.it> <6pxV5-2ci-13@gated-at.bofh.it> <6pz12-3Rg-67@gated-at.bofh.it> <6pzX4-5jE-19@gated-at.bofh.it> <6pA6B-5K8-33@gated-at.bofh.it> <20060620180313.GC7463@flint.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-be10.7eggert.dyndns.org-MailScanner-Information: See www.mailscanner.info for information X-be10.7eggert.dyndns.org-MailScanner: Found to be clean X-be10.7eggert.dyndns.org-MailScanner-From: 7eggert@web.de Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 20 Jun 2006, Russell King wrote: > On Tue, Jun 20, 2006 at 04:39:49PM +0200, Bodo Eggert wrote: > > There are thousands of NE2K-clones, the driver can't know if sharing the IRQ > > will be OK for a given card. Is the change for sharing IRQs trivial enough > > to allow an if/else based on a load-time module parameter? > > Not if it's an ISA card. You need to loop over all interrupt source > devices until you're certain that they have released the interrupt > line before returning, otherwise you will end up with the IRQ line > stuck in a state where it can't cause any further interrupts. > > The kernel has no such infrastructure, except within the serial driver > to allow multiple serial ports to share a common interrupt. What a pity - I hoped for a grab_shared_irq() which would do what you describe. -- Is reading in the bathroom considered Multitasking?