From: Dave Jones <davej@codemonkey.org.uk>
To: Greg KH <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org, pcihpd-discuss@lists.sourceforge.net
Subject: Re: [BK PATCH] PCI and PCI Hotplug changes and fixes for 2.5.70
Date: Thu, 5 Jun 2003 20:10:13 +0100 [thread overview]
Message-ID: <20030605191013.GA14113@suse.de> (raw)
In-Reply-To: <20030605171835.GC5424@kroah.com>
On Thu, Jun 05, 2003 at 10:18:35AM -0700, Greg KH wrote:
> > The fact that a tree-wide 'cleanup' like this goes in just a few hours
> > after its posted before chance to comment is another argument, but
> > concentrating on the technical point here, I still think this is a
> > step backwards.
>
> Why? I just got rid of a function (well macro) that isn't even needed
> (as proven by replacing it with an existing function.) That's
> technically a good thing :)
Not when that replacement reduces readability, which in the case of
agpgart is all I care about wrt these changes.
> Now I can agree that some of those replacements could be done with a
> different function call, as almost none of the replacements in the
> driver/* tree really want to walk all of the pci devices in the tree.
> They usually just want to walk all devices of a type of pci device (be
> it capability, or other trait.) I'd be glad to take changes of this
> sort in the future.
Ok, for the ones I'm interested in, (agpgart), I don't see how things
can get much cleaner than they used to be.
07 - hammer. Needs to walk the whole list, matching pci devices on
bus 0, func 3, slots >23 & <32
This set of rules is so specialised, I see it hard to concieve how
a generic helper function for the pci layer could be written.
08 - generic. Needs to know about every AGP device on the bus.
ok, a for_each_agp_dev may actually make life easier here,
but as its the only place this happens, consider it inlined,
using pci_for_each_dev
09 - isoch. Could also use a 'for_each_agp_dev', but to be honest,
it shouldn't be scanning at all, but being passed what it needs.
For the time being, I'm actually tempted to hack up a 'for_each_agp_dev'
for the latter two, but 07 still bugs me.
Dave
prev parent reply other threads:[~2003-06-05 18:52 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-05 1:31 [BK PATCH] PCI and PCI Hotplug changes and fixes for 2.5.70 Greg KH
2003-06-05 2:05 ` [PATCH] " Greg KH
2003-06-05 2:05 ` Greg KH
2003-06-05 2:05 ` Greg KH
2003-06-05 2:05 ` Greg KH
2003-06-05 2:05 ` Greg KH
2003-06-05 2:05 ` Greg KH
2003-06-05 2:05 ` Greg KH
2003-06-05 2:05 ` Greg KH
2003-06-05 2:05 ` Greg KH
2003-06-05 2:05 ` Greg KH
2003-06-05 2:05 ` Greg KH
2003-06-05 9:19 ` Russell King
2003-06-05 17:04 ` Greg KH
2003-06-05 17:57 ` Russell King
2003-06-05 2:14 ` [BK PATCH] " Greg KH
2003-06-05 8:38 ` Dave Jones
2003-06-05 8:49 ` Greg KH
2003-06-05 8:59 ` Dave Jones
2003-06-05 9:06 ` Greg KH
2003-06-05 9:18 ` Dave Jones
2003-06-05 9:22 ` Russell King
2003-06-05 17:18 ` Greg KH
2003-06-05 19:10 ` Dave Jones [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030605191013.GA14113@suse.de \
--to=davej@codemonkey.org.uk \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pcihpd-discuss@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox