]> git.baikalelectronics.ru Git - kernel.git/commit
pciehp: Fix wrong slot control register access
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Fri, 25 Apr 2008 21:39:05 +0000 (14:39 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 25 Apr 2008 21:39:05 +0000 (14:39 -0700)
commitb0ca0a0c35264763da53769f088e4fc7465887bc
tree456adc0fe0b909acdf8382387c2ebfc6c2b8bfa9
parent5e6c56f433c0ea0e907d4eec2a21f6f8214399eb
pciehp: Fix wrong slot control register access

Current pciehp implementaion clears hotplug events without waiting for
command completion. Because of this, events might not be cleared properly.
To prevent this problem, we must use pciehp_write_cmd() to write to
Slot Control register.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/pciehp_hpc.c