]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] shpchp: Fix slot state handling
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Tue, 21 Feb 2006 23:45:48 +0000 (15:45 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Mar 2006 22:35:13 +0000 (14:35 -0800)
commit1b670ef4c81a57fc9db51f205d47263e2ebbf4fc
tree21490f4d1d2794a9ccd64529431fbbd8f4e234e7
parent0ddbadf294e46b49e5fe0f22583c53d75c797cfb
[PATCH] shpchp: Fix slot state handling

Current SHPCHP driver doesn't care about the confliction between
hotplug operation via sysfs and hotplug operation via attention
button. So if those ware conflicted, slot could be an unexpected
state.

This patch changes SHPCHP driver to handle slot state properly. With
this patch, slot events are handled according to the current slot
state as shown at the Table below.

Table. Slot States and Event Handling
=========================================================================
Slot State Event and Action
=========================================================================
STATIC - Go to POWERON state if user initiates
(Slot enabled,   insertion request via sysfs
 Slot disabled) - Go to POWEROFF state if user initiates removal
  request via sysfs
- Go to BLINKINGON state if user presses
  attention button when the slot is disabled
- Go to BLINKINGOFF state if user presses
  attention button when the slot is enabled
drivers/pci/hotplug/shpchp.h
drivers/pci/hotplug/shpchp_core.c
drivers/pci/hotplug/shpchp_ctrl.c