summaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/interrupt.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2015-07-26 08:54:18 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-04 02:30:00 +0200
commit51678ccb7b12dd428a84d466ff379a5e2d717f1f (patch)
treea0c122b9751655eaaa28d97a40cad163b8779547 /drivers/misc/mei/interrupt.c
parentmei: enable async event notifications only from hbm version 2.0 (diff)
downloadlinux-51678ccb7b12dd428a84d466ff379a5e2d717f1f.tar.xz
linux-51678ccb7b12dd428a84d466ff379a5e2d717f1f.zip
mei: add mei_cl_notify_request command
Add per client notification request infrastructure that allows client to enable or disable async 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/interrupt.c')
-rw-r--r--drivers/misc/mei/interrupt.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c
index 89d8e1304077..c418d7888994 100644
--- a/drivers/misc/mei/interrupt.c
+++ b/drivers/misc/mei/interrupt.c
@@ -403,6 +403,13 @@ int mei_irq_write_handler(struct mei_device *dev, struct mei_cl_cb *cmpl_list)
if (ret)
return ret;
break;
+
+ case MEI_FOP_NOTIFY_START:
+ case MEI_FOP_NOTIFY_STOP:
+ ret = mei_cl_irq_notify(cl, cb, cmpl_list);
+ if (ret)
+ return ret;
+ break;
default:
BUG();
}