]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/pciback: Support pci_reset_function, aka FLR or D3 support.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 12 Jan 2012 17:06:47 +0000 (12:06 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 19 Apr 2012 21:06:55 +0000 (17:06 -0400)
commit1d9993fd16289fcbcc36c4b40d3c79cc295f89b8
tree3755f5aa0e9a69c5c3fc5bcaef9f19ba58a01ef9
parentd2c0f6026a369823b8490a2407ca5eb1e4489117
xen/pciback: Support pci_reset_function, aka FLR or D3 support.

We use the __pci_reset_function_locked to perform the action.
Also on attaching ("bind") and detaching ("unbind") we save and
restore the configuration states. When the device is disconnected
from a guest we use the "pci_reset_function" to also reset the
device before being passed to another guest.

[upstream git commit 1160831]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/xen/xen-pciback/pci_stub.c
drivers/xen/xen-pciback/pciback.h