Mark McLoughlin 64a6682b93 Allow PM reset on multi-function PCI devices
It turns out that a PCI Power Management reset only affects individual
functions, and not the whole device.

The PCI Power Management spec talks about resetting the 'device' rather
than the 'function', but Intel's Dexuan Cui informs me that it is
actually a per-function reset.

Also, Yu Zhao has added pci_pm_reset() to the kernel, and it doesn't
reject multi-function devices, so it must be true! :-)

(A side issue is that we could defer the PM reset to the kernel if we
could detect that the kernel has PM reset support, but barring version
number checks we don't have a way to detect that support)

* src/pci.c: remove the pciDeviceContainsOtherFunctions() check from
  pciTryPowerManagementReset() and prefer PM reset over bus reset
  where both are available

Cc: Cui, Dexuan <dexuan.cui@intel.com>
Cc: Yu Zhao <yu.zhao@intel.com>
2009-08-14 08:31:11 +01:00
..
2009-08-07 13:50:32 +02:00
2009-08-11 13:32:03 +02:00
2009-06-03 11:13:33 +00:00
2009-08-04 18:13:09 +01:00
2009-07-23 16:07:32 +01:00
2009-07-24 16:11:00 +01:00
2009-07-23 17:38:06 +01:00
2008-12-04 21:09:20 +00:00
2008-12-04 21:09:20 +00:00
2009-05-08 10:05:56 +00:00
2008-11-07 16:43:23 +00:00
2009-08-14 08:31:10 +01:00
2009-06-29 17:09:42 +00:00
2008-11-17 11:03:25 +00:00
2008-11-17 11:03:25 +00:00
2009-07-16 15:06:42 +02:00
2009-07-16 15:06:42 +02:00
2009-06-17 08:38:17 +00:00
2009-07-16 15:06:42 +02:00
2009-07-23 17:38:06 +01:00
2009-07-23 16:07:32 +01:00
2009-07-23 16:07:32 +01:00
2009-01-15 19:56:05 +00:00
2009-01-15 19:56:05 +00:00
2009-01-15 19:56:05 +00:00
2009-01-15 19:56:05 +00:00
2009-01-15 19:56:05 +00:00
2009-01-21 18:11:14 +00:00