]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8296ee03ca04bd0e3367a4e45b892cc82b379f4e
tree9c6910276ef5b5b2fbfa3a8ec6249a217d1d848f
parent6319139f250c16e1288944ce5901e9824d561b87
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