]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Make EEH device add/remove more robust
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 27 Oct 2008 19:48:41 +0000 (19:48 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 5 Nov 2008 22:25:15 +0000 (09:25 +1100)
commita295208b325f1b860667213b34097f36a739d960
treedb3ad5a9f4bff3851990043828ea96c7496e91c6
parent3f0f4a5fcfb4468bcefedab8cb2efbcf070449a7
powerpc/eeh: Make EEH device add/remove more robust

To properly fix PCI hotplug, it's useful to be able to make the fixup
passes on all devices whether they were just hot plugged or already
there.

The EEH code however used to not be very friendly with calling
eeh_add_device_late() multiple time, and not very rebust in the way it
generally tests whether a device is in the expected state vs. the EEH
code.

This improves it, along with cleaning up a couple of debug printk's.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/eeh.c