From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Yinghai Lu <yinghai@kernel.org>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>,
Linus Torvalds <torvalds@linux-foundation.org>,
Ingo Molnar <mingo@elte.hu>, Matthew Wilcox <matthew@wil.cx>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: pci_find_parent_resource patch
Date: Tue, 10 Nov 2009 08:23:40 +0000 [thread overview]
Message-ID: <20091110082340.319f1ad3@jbarnes-x200> (raw)
In-Reply-To: <4AF875D0.10602@kernel.org>
I don't remember seeing it, is it for 2.6.32?
Jesse
On Mon, 09 Nov 2009 12:04:32 -0800
Yinghai Lu <yinghai@kernel.org> wrote:
> it seems this patch from Linus get lost ?
>
> -----------------------------------------------------
>
>
>
> from Linus
>
> ---
> drivers/pci/pci.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> Index: linux-2.6/drivers/pci/pci.c
> ===================================================================
> --- linux-2.6.orig/drivers/pci/pci.c
> +++ linux-2.6/drivers/pci/pci.c
> @@ -382,8 +382,12 @@ pci_find_parent_resource(const struct pc
> continue; /* Wrong type */
> if (!((res->flags ^ r->flags) & IORESOURCE_PREFETCH))
> return r; /* Exact match */
> - if ((res->flags & IORESOURCE_PREFETCH) && !(r->flags
> & IORESOURCE_PREFETCH))
> - best = r; /* Approximating
> prefetchable by non-prefetchable */
> + /* We can't insert a non-prefetch resource inside a
> prefetchable parent .. */
> + if (r->flags & IORESOURCE_PREFETCH)
> + continue;
> + /* .. but we can put a prefetchable resource inside
> a non-prefetchable one */
> + if (!best)
> + best = r;
> }
> return best;
> }
>
next prev parent reply other threads:[~2009-11-10 8:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-09 20:04 Yinghai Lu
2009-11-10 8:23 ` Jesse Barnes [this message]
2009-11-10 10:05 ` Yinghai Lu
2009-11-10 15:57 ` Linus Torvalds
2009-11-11 8:21 ` Jesse Barnes
2009-11-25 0:22 Yinghai Lu
2009-12-04 23:59 ` Jesse Barnes
2009-12-05 0:24 ` Linus Torvalds
2009-12-05 0:30 ` Jesse Barnes
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=20091110082340.319f1ad3@jbarnes-x200 \
--to=jbarnes@virtuousgeek.org \
--cc=ink@jurassic.park.msu.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=matthew@wil.cx \
--cc=mingo@elte.hu \
--cc=torvalds@linux-foundation.org \
--cc=yinghai@kernel.org \
/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
all inboxes | Powered by JetHome®