mei: add a handler that waits for notification on event

mei_cl_notify_get is to be called by a host client
to wait, receive, and ack the event notification.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Tomas Winkler
2015-07-26 09:54:19 +03:00
committed by Greg Kroah-Hartman
부모 51678ccb7b
커밋 b38a362fad
4개의 변경된 파일58개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

@@ -514,8 +514,10 @@ static void mei_hbm_cl_notify(struct mei_device *dev,
struct mei_cl *cl;
cl = mei_hbm_cl_find_by_cmd(dev, cmd);
if (cl && cl->notify_en)
if (cl && cl->notify_en) {
cl->notify_ev = true;
wake_up_interruptible(&cl->ev_wait);
}
}
/**