Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932242AbWJATfS (ORCPT ); Sun, 1 Oct 2006 15:35:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932240AbWJATfR (ORCPT ); Sun, 1 Oct 2006 15:35:17 -0400 Received: from pentafluge.infradead.org ([213.146.154.40]:7833 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S932242AbWJATfP (ORCPT ); Sun, 1 Oct 2006 15:35:15 -0400 Subject: Re: [-mm patch] aic7xxx: check irq validity (was Re: 2.6.18-mm2) From: Arjan van de Ven To: Jeff Garzik Cc: Matthew Wilcox , linux-scsi@vger.kernel.org, "Linux-Kernel," , "J.A. Magall??n" , Alan Cox , Andrew Morton , Frederik Deweerdt In-Reply-To: <452014C2.1050000@garzik.org> References: <20060928014623.ccc9b885.akpm@osdl.org> <20060929155738.7076f0c8@werewolf> <20060929143949.GL5017@parisc-linux.org> <1159550143.13029.36.camel@localhost.localdomain> <20060929235054.GB2020@slug> <1159573404.13029.96.camel@localhost.localdomain> <20060930140946.GA1195@slug> <451F049A.1010404@garzik.org> <20061001142807.GD16272@parisc-linux.org> <1159729523.2891.408.camel@laptopd505.fenrus.org> <452014C2.1050000@garzik.org> Content-Type: text/plain Organization: Intel International BV Date: Sun, 01 Oct 2006 21:34:50 +0200 Message-Id: <1159731290.2891.411.camel@laptopd505.fenrus.org> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1608 Lines: 39 On Sun, 2006-10-01 at 15:19 -0400, Jeff Garzik wrote: > Arjan van de Ven wrote: > > well... why not go one step further and eliminate the flags argument > > entirely? And use pci_name() for the name (so eliminate the argument ;) > > and always pass pdev as data, so that that argument can go away too.... > > > > that'll cover 99% of the request_irq() users for pci devices.. and makes > > it really nicely simple and consistent. > > Disagree. That would involve rewriting a lot of drivers. > > flags: may or may not need sample-random flag. ok fair.. but I'd then almost call it "samplerandom" not "flags"... > > name: is always the ethernet interface, for net drivers, or did you > forget from your irqbalance days? ;-) I'd say the "always" isn't quite true .. I remember that well. If it's always the pci device at least irqbalance can look up the device type in sysfs ;) > data: in practice, is _rarely_ struct pci_dev. It's usually a > driver-private structure which is the structure most frequently > accessed. struct pci_dev* is rarely accessed inside the interrupt > handler, except maybe somewhere deep in an error handling path. hmmm could put a pointer to the private data in the pci_dev at least... that'd be generally useful, and then this can either just pass that, or have the isr get to it that way (whichever makes more sense) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/