* [PATCH] powerpc/eeh: Clear the EEH_DEV_NO_HANDLER flag when connecting edev with pdev
@ 2015-06-25 1:37 Wei Yang
0 siblings, 0 replies; only message in thread
From: Wei Yang @ 2015-06-25 1:37 UTC (permalink / raw)
To: gwshan; +Cc: linuxppc-dev, Wei Yang
On hotplug case, after a pdev is removed from the system, edev->mode will
set flag EEH_DEV_NO_HANDLER to mark the status. While this flag is not
cleared when we probe back those pdev. This will lead to miss the call of
driver->err_handler->slot_reset in eeh_report_reset().
This patch clear this flag when probe back those devices.
Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>
---
arch/powerpc/kernel/eeh.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c
index 9ee61d1..adf9bc4 100644
--- a/arch/powerpc/kernel/eeh.c
+++ b/arch/powerpc/kernel/eeh.c
@@ -1113,6 +1113,7 @@ void eeh_add_device_late(struct pci_dev *dev)
pdn = pci_get_pdn_by_devfn(dev->bus, dev->devfn);
edev = pdn_to_eeh_dev(pdn);
+ edev->mode &= ~EEH_DEV_NO_HANDLER;
if (edev->pdev == dev) {
pr_debug("EEH: Already referenced !\n");
return;
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-25 1:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-25 1:37 [PATCH] powerpc/eeh: Clear the EEH_DEV_NO_HANDLER flag when connecting edev with pdev Wei Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).