PCI: expose function reset capability in sysfs
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 27 Jul 2009 20:37:48 +0000 (23:37 +0300)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 9 Sep 2009 20:29:24 +0000 (13:29 -0700)
commit711d57796f5ce2d02d6e62c9034afbb16aedda31
tree935861fee775b171cafc96de57fe4fbfa19892eb
parent5228a828ee044834d78abdf25306bf46b19dcc4d
PCI: expose function reset capability in sysfs

Some devices allow an individual function to be reset without affecting
other functions in the same device: that's what pci_reset_function does.
For devices that have this support, expose reset attribite in sysfs.

This is useful e.g. for virtualization, where a qemu userspace
process wants to reset the device when the guest is reset,
to emulate machine reboot as closely as possible.

Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Documentation/ABI/testing/sysfs-bus-pci
drivers/pci/pci-sysfs.c
drivers/pci/pci.c
drivers/pci/pci.h
include/linux/pci.h