]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Fix bus resource assignment on 32 bits with 64b resources
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 10 Dec 2007 06:32:15 +0000 (17:32 +1100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Feb 2008 23:04:25 +0000 (15:04 -0800)
commit5255c376a2c82b97c3e1d5a9dab2423ac54418c9
tree9335519358ff657a6a80baefd759337e324dc26d
parent5f4c4089100f7b0c295034515bd3fa00bc4d93d8
PCI: Fix bus resource assignment on 32 bits with 64b resources

The current pci_assign_unassigned_resources() code doesn't work properly
on 32 bits platforms with 64 bits resources. The main reason is the use
of unsigned long in various places instead of resource_size_t.

This is a pre-requisite for making powerpc use the generic code instead of
its own half-useful implementation.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/setup-bus.c
include/linux/pci.h