From: Rafael J. Wysocki Date: Mon, 7 Jul 2008 01:32:52 +0000 (+0200) Subject: PCI: rework pci_set_power_state function to call platform first X-Git-Tag: v2.6.27-rc1~1046^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44e4e66eeae5338b3ca0b28f8352e60bf18d5ba8;p=pandora-kernel.git PCI: rework pci_set_power_state function to call platform first Rework pci_set_power_state() so that the platform callback is invoked before the native mechanism, if necessary. Also, make the function check if the device is power manageable by the platform before invoking the platform callback. This may matter if the device dependent on additional power resources controlled by the platform is being put into D0, in which case those power resources must be turned on before we attempt to handle the device itself. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed