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>
diff --git a/drivers/misc/mei/hbm.c b/drivers/misc/mei/hbm.c
index 95e918c..12229ff 100644
--- a/drivers/misc/mei/hbm.c
+++ b/drivers/misc/mei/hbm.c
@@ -446,10 +446,7 @@
struct hbm_notification_response *rs =
(struct hbm_notification_response *)cmd;
- if (rs->start == MEI_HBM_NOTIFICATION_START)
- return MEI_FOP_NOTIFY_START;
- else
- return MEI_FOP_NOTIFY_STOP;
+ return mei_cl_notify_req2fop(rs->start);
}
/**