]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] PCI Hotplug: more CPCI updates
authorScott Murray <scottm@somanetworks.com>
Fri, 27 May 2005 20:48:52 +0000 (16:48 -0400)
committerGreg KH <gregkh@suse.de>
Tue, 31 May 2005 21:26:38 +0000 (14:26 -0700)
commitbcc488ab02254a6e60d749187a632dc3d642d4f8
tree4cd45b4d546cf85c14c442b27f611e048a4d9938
parentaf00f9811e0ccbd3db84ddc4cffb0da942653393
[PATCH] PCI Hotplug: more CPCI updates

Here is my third attempt at a patch to further update the CompactPCI
hotplug driver infrastructure to address the pci_enable_device issue
discussed on the list as well as a few other issues I discovered during
some more testing.  This version addresses a few more issues pointed out
by Prarit Bhargava.  Changes include:
- cpci_enable_device and its recursive calling of pci_enable_device on
  new devices removed.
- Use list_rwsem to avoid slot status change races between disable_slot
  and check_slots.
- Fixed oopsing in cpci_hp_unregister_bus caused by calling list_del on
  a slot after calling pci_hp_deregister.
- Removed kfree calls in cleanup_slots since release_slot will have
  done it already.
- Reworked init_slots a bit to fix latch and adapter file updating on
  subsequent calls to cpci_hp_start.
- Improved sanity checking in cpci_hp_register_controller.
- Now shut things down correctly in cpci_hotplug_exit.
- Switch to pci_get_slot instead of deprecated pci_find_slot.
- A bunch of CodingStyle fixes.

Signed-off-by: Scott Murray <scottm@somanetworks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/hotplug/cpci_hotplug_core.c
drivers/pci/hotplug/cpci_hotplug_pci.c