Re: pci_find_parent_resource patch

From: Jesse Barnes
Date: Tue Nov 10 2009 - 03:23:54 EST


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@xxxxxxxxxx> 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;
> }
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/