Re: CFT/RFC: New cardbus resource allocation

From: Russell King (rmk@arm.linux.org.uk)
Date: Thu Nov 07 2002 - 05:37:12 EST


On Thu, Nov 07, 2002 at 01:25:40PM +0300, Ivan Kokshaysky wrote:
> Looks quite reasonable.
> Note that we don't need 2 similar functions in setup-res.c -
> pci_assign_resource() can be easily converted to use your
> pci_alloc_parent_resource(), and pci_assign_bus_resource() can
> be killed then.

I looked at that and decided it wasn't practical. pci_assign_resource()
needs the parent resource to pass it down to the architecture specific
layers. Unfortunately, trying to get that out of
pci_alloc_parent_resource() makes the API rather disgusting IMHO.

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

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



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:48 EST