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:

committed by
Greg Kroah-Hartman

부모
51678ccb7b
커밋
b38a362fad
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user