Re: pci_find_parent_resource patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux