diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2015-07-26 09:54:19 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-03 17:30:00 -0700 |
commit | b38a362fad6686dd580a50590053a76ded601a0b (patch) | |
tree | b5901f25be614d5fbf8e3d70d8120ed214eaca7a /drivers/misc/mei/hbm.c | |
parent | 51678ccb7b12dd428a84d466ff379a5e2d717f1f (diff) | |
download | linux-b38a362fad6686dd580a50590053a76ded601a0b.tar.bz2 |
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>
Diffstat (limited to 'drivers/misc/mei/hbm.c')
-rw-r--r-- | drivers/misc/mei/hbm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/misc/mei/hbm.c b/drivers/misc/mei/hbm.c index 12229ff4bc7e..70c94a9cd905 100644 --- a/drivers/misc/mei/hbm.c +++ b/drivers/misc/mei/hbm.c @@ -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); + } } /** |