PCI: Add pci_clear_master() as opposite of pci_set_master()
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 23 Dec 2008 03:08:29 +0000 (03:08 +0000)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:13:23 +0000 (11:13 -0800)
commit6a479079c07211bf348ac8a79754f26bea258f26
tree1587c0ed9446c7d0d6ab8a38d1524132e2faae35
parentb8d9cb2a2226118fd71f657c80b06b670a653022
PCI: Add pci_clear_master() as opposite of pci_set_master()

During an online device reset it may be useful to disable bus-mastering.
pci_disable_device() does that, and far more besides, so is not suitable
for an online reset.

Add pci_clear_master() which does just this.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Reviewed-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Documentation/PCI/pci.txt
drivers/pci/pci.c
include/linux/pci.h