[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1159731290.2891.411.camel@laptopd505.fenrus.org>
Date: Sun, 01 Oct 2006 21:34:50 +0200
From: Arjan van de Ven <arjan@...radead.org>
To: Jeff Garzik <jeff@...zik.org>
Cc: Matthew Wilcox <matthew@....cx>, linux-scsi@...r.kernel.org,
"Linux-Kernel," <linux-kernel@...r.kernel.org>,
"J.A. Magall??n" <jamagallon@....com>,
Alan Cox <alan@...rguk.ukuu.org.uk>,
Andrew Morton <akpm@...l.org>,
Frederik Deweerdt <deweerdt@...e.fr>
Subject: Re: [-mm patch] aic7xxx: check irq validity (was Re: 2.6.18-mm2)
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists