[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>