pciehp: evaluate _OSC/OSHP before controller init
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Wed, 28 May 2008 05:57:30 +0000 (14:57 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 10 Jun 2008 17:59:53 +0000 (10:59 -0700)
commit125c39f7d233de28f342d80858025ffed0c4b7f4
tree9c6910276ef5b5b2fbfa3a8ec6249a217d1d848f
parentb143b3cc82fac459feb1abdffb1d77be9805adaa
pciehp: evaluate _OSC/OSHP before controller init

Current pciehp evaluates _OSC/OSHP method after some controller
initialization is done. So if evaluating _OSC/OSHP is failed, we need
to cleanup already initialized data structures or hardware. This
clearly is not robust way. With this patch, _OSC/OSHP evaluation is
done first.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/pciehp.h
drivers/pci/hotplug/pciehp_core.c
drivers/pci/hotplug/pciehp_hpc.c