mei: abstract host and device readieness

Add mei_host_set_ready function to enable the device
and is_ready function to query the host and me readiness

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Tomas Winkler
2013-01-08 23:07:29 +02:00
committed by Greg Kroah-Hartman
parent 9ea73ddd4f
commit 115ba28c5e
4 changed files with 54 additions and 18 deletions

View File

@@ -396,6 +396,10 @@ void mei_clear_interrupts(struct mei_device *dev);
void mei_enable_interrupts(struct mei_device *dev);
void mei_disable_interrupts(struct mei_device *dev);
void mei_host_set_ready(struct mei_device *dev);
bool mei_host_is_ready(struct mei_device *dev);
bool mei_me_is_ready(struct mei_device *dev);
#define MEI_HDR_FMT "hdr:host=%02d me=%02d len=%d comp=%1d"