* [PATCH] - SN: Fix cleanup on hotplug removal of PPB
@ 2006-03-02 16:29 John Keller
2006-03-02 16:41 ` Prarit Bhargava
0 siblings, 1 reply; 2+ messages in thread
From: John Keller @ 2006-03-02 16:29 UTC (permalink / raw)
To: linux-ia64
When doing a hotplug removal of a PPB, sn_bus_store_sysdata()
needs to be called for the PPB and all of its children.
Acked-by: Prarit Bhargava <prarit@sgi.com>
Signed-off-by: John Keller <jpk@sgi.com>
Index: hotplug-fix/drivers/pci/hotplug/sgi_hotplug.c
=================================--- hotplug-fix.orig/drivers/pci/hotplug/sgi_hotplug.c 2006-03-01 13:10:14.389044930 -0600
+++ hotplug-fix/drivers/pci/hotplug/sgi_hotplug.c 2006-03-01 14:30:05.982125135 -0600
@@ -3,7 +3,7 @@
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
- * Copyright (C) 2005 Silicon Graphics, Inc. All rights reserved.
+ * Copyright (C) 2005-2006 Silicon Graphics, Inc. All rights reserved.
*
* This work was based on the 2.4/2.6 kernel development by Dick Reigner.
* Work to add BIOS PROM support was completed by Mike Habeck.
@@ -230,6 +230,13 @@ static void sn_bus_free_data(struct pci_
list_for_each_entry(child, &subordinate_bus->devices, bus_list)
sn_bus_free_data(child);
}
+ /*
+ * Some drivers may use dma accesses during the
+ * driver remove function. We release the sysdata
+ * areas after the driver remove functions have
+ * been called.
+ */
+ sn_bus_store_sysdata(dev);
sn_pci_unfixup_slot(dev);
}
@@ -429,13 +436,6 @@ static int disable_slot(struct hotplug_s
PCI_DEVFN(slot->device_num + 1,
PCI_FUNC(func)));
if (dev) {
- /*
- * Some drivers may use dma accesses during the
- * driver remove function. We release the sysdata
- * areas after the driver remove functions have
- * been called.
- */
- sn_bus_store_sysdata(dev);
sn_bus_free_data(dev);
pci_remove_bus_device(dev);
pci_dev_put(dev);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] - SN: Fix cleanup on hotplug removal of PPB
2006-03-02 16:29 [PATCH] - SN: Fix cleanup on hotplug removal of PPB John Keller
@ 2006-03-02 16:41 ` Prarit Bhargava
0 siblings, 0 replies; 2+ messages in thread
From: Prarit Bhargava @ 2006-03-02 16:41 UTC (permalink / raw)
To: linux-ia64
John Keller wrote:
> When doing a hotplug removal of a PPB, sn_bus_store_sysdata()
> needs to be called for the PPB and all of its children.
>
> Acked-by: Prarit Bhargava <prarit@sgi.com>
> Signed-off-by: John Keller <jpk@sgi.com>
>
John, this needs to be sent to
pcihpd-discuss@lists.sourceforge.net
Tony, please disregard this patch.
Thanks,
P.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-02 16:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-02 16:29 [PATCH] - SN: Fix cleanup on hotplug removal of PPB John Keller
2006-03-02 16:41 ` Prarit Bhargava
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox