]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7986/1: bios32: use pci_enable_resource to enable PCI resources
authorWill Deacon <will.deacon@arm.com>
Fri, 21 Feb 2014 17:48:01 +0000 (18:48 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 25 Feb 2014 11:37:49 +0000 (11:37 +0000)
commitc142e4d2107f3f2ec12772c064e7a65a9fe3380e
tree9b792ac60d58397fc2be04943cd55b0ce7d6d0b6
parente1a0bec83cfa227a757a138ba0b83ac8cb3f42d9
ARM: 7986/1: bios32: use pci_enable_resource to enable PCI resources

This patch moves bios32 over to using the generic code for enabling PCI
resources. Since the core code takes care of bridge resources too, we
can also drop the explicit IO and MEMORY enabling for them in the arch
code.

A side-effect of this change is that we no longer explicitly enable
devices when running in PCI_PROBE_ONLY mode. This stays closer to the
meaning of the option and prevents us from trying to enable devices
without any assigned resources (the core code refuses to enable
resources without parents).

Tested-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Tested-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/bios32.c