]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Hotplug improvement
authorGavin Shan <shangw@linux.vnet.ibm.com>
Sun, 12 Jan 2014 06:13:45 +0000 (14:13 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 15 Jan 2014 02:58:29 +0000 (13:58 +1100)
commite2fe26c24b0b6f8a2d2f7bbb3235154b6ea17339
tree2903a8f9ca7ea27b2e1ebd18468f1b809ef3af6a
parentb06abc627cc77840e2138a230eaaa6534961a332
powerpc/eeh: Hotplug improvement

When EEH error comes to one specific PCI device before its driver
is loaded, we will apply hotplug to recover the error. During the
plug time, the PCI device will be probed and its driver is loaded.
Then we wrongly calls to the error handlers if the driver supports
EEH explicitly.

The patch intends to fix by introducing flag EEH_DEV_NO_HANDLER and
set it before we remove the PCI device. In turn, we can avoid wrongly
calls the error handlers of the PCI device after its driver loaded.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/eeh.h
arch/powerpc/kernel/eeh.c
arch/powerpc/kernel/eeh_driver.c