Commit 9fa0be8b authored by Alexander Usyskin's avatar Alexander Usyskin Committed by Greg Kroah-Hartman

mei: amthif: enable poll for async events

Currently the poll function is bailing early for amthif client and
ignores requests for async events notifications.
Move async event processing before amthif to enable async events
notifications on amthif client.
Signed-off-by: default avatarAlexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bca7dbac
...@@ -609,17 +609,17 @@ static unsigned int mei_poll(struct file *file, poll_table *wait) ...@@ -609,17 +609,17 @@ static unsigned int mei_poll(struct file *file, poll_table *wait)
goto out; goto out;
} }
if (cl == &dev->iamthif_cl) {
mask = mei_amthif_poll(file, wait);
goto out;
}
if (notify_en) { if (notify_en) {
poll_wait(file, &cl->ev_wait, wait); poll_wait(file, &cl->ev_wait, wait);
if (cl->notify_ev) if (cl->notify_ev)
mask |= POLLPRI; mask |= POLLPRI;
} }
if (cl == &dev->iamthif_cl) {
mask |= mei_amthif_poll(file, wait);
goto out;
}
if (req_events & (POLLIN | POLLRDNORM)) { if (req_events & (POLLIN | POLLRDNORM)) {
poll_wait(file, &cl->rx_wait, wait); poll_wait(file, &cl->rx_wait, wait);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment