]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/pci/hotplug/pciehp.h
PCI: pciehp: enable software notification on empty slots
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Tue, 3 Feb 2009 06:06:16 +0000 (15:06 +0900)
committerJesse Barnes <jbarnes@hobbes.lan>
Fri, 20 Mar 2009 02:29:29 +0000 (19:29 -0700)
commit99f0169c17f334a11b0ace91188501c612f3e1e6
tree1dab8a0f010f62611945063abcd6f988dca7bf3e
parent81b840cd27e3ee9af67b6e05a4847868f74fce69
PCI: pciehp: enable software notification on empty slots

Current pciehp disables software notification of adapter presence
changed event and MRL changed event when slot is turned off. Because
of this, there is no way to detect those events on empty slots in the
current pciehp implementation.

According to the past discussion(*), this behavior was introduced to
prevent endless loop that could happen if pcie_isr() runs after power
fault is detected on a certain platform whose stickey power-fault bit
remains on till the slot is powered on again.

(*) http://sourceforge.net/mailarchive/message.php?msg_id=20051130135409.A14918%40unix-os.sc.intel.com

I think this endless loop can be avoided using one bit flag that
indicates power fault had been detected, instead of disabling software
notification of adapter present changed event and MRL changed event.

With this patch, we can enable software notification mechanism of
presence changed and MRL changed event on the empty slots again.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/pciehp.h
drivers/pci/hotplug/pciehp_hpc.c