[PORT FROM R2] mid_pmu: check if pci_set_power_state called after shutdown
authorIllyas Mansoor <illyas.mansoor@intel.com>
Thu, 12 Jan 2012 18:22:33 +0000 (23:52 +0530)
committerbuildbot <buildbot@intel.com>
Tue, 17 Jan 2012 18:11:01 +0000 (10:11 -0800)
commitbba5d2c8a2eea049391b1d39607dc1a393f37cfe
treeb5a00cd801562ac5e8fbd956ef576802c0eb2dea
parentc85ff79dd94a716ab65390a423bffa5d5216a133
[PORT FROM R2] mid_pmu: check if pci_set_power_state called after shutdown

BZ: 17351

There might be some buggy drivers that call pci_set_power_state
even after device_shutdown() is called, this could interfere
with shutdown and cause fabric error because while shtudown
is in progress we dont issue d0ix command.

Added a BUG() to catch this kind of behaviour.

Change-Id: Id718515f288872272aaf76ca04c6c44a5083a309
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Reviewed-on: http://android.intel.com:8080/31749
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Rudramuni, Vishwesh M <vishwesh.m.rudramuni@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
arch/x86/platform/mfld/pmu.c