mei: hbm: reorganize the power gating responses
authorAlexander Usyskin <alexander.usyskin@intel.com>
Sun, 2 Aug 2015 19:20:53 +0000 (22:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Aug 2015 00:33:54 +0000 (17:33 -0700)
commit63f75232dbb17badc31c3cc6cc1434763d5a6009
tree7e9e6a976851051c2d018bff251f94454a2760c6
parent1fa55b4e0e161b3d16b52f5bab1b39b39607bc27
mei: hbm: reorganize the power gating responses

Before adding support for D0i3 we need to reorganize the hbm pg handling
Move HBM PG response code to dedicated functions in order to unclutter
hbm command switch.
Add check for the right system state before message processing and
return -EPROTO in state mismatch case.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/hbm.c