diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2014-12-07 09:40:14 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-12 08:04:10 -0500 |
commit | 2e5df413becf6bd3854d1eb4f96542a53848bb27 (patch) | |
tree | 16cf0fcd88b6cd87c52733c1c76da137b396a7f6 | |
parent | 39db74ce1aa83626a0a70ed2abf29a17598fff49 (diff) |
mei: use uuid, me_addr tuple addressing also for flow control credits
Add uuid, me_addr addressing also for flow control credits.
The only exception in cases for single buffer clients for which
the host address in flow credits response is always 0
To in order to deal with add/remove race between fw and driver clients
addressing we need to use [uuid, me_addr] tuple to address the clients
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/misc/mei/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/mei/client.c b/drivers/misc/mei/client.c index 1382d551d7ed..3be18b7951e5 100644 --- a/drivers/misc/mei/client.c +++ b/drivers/misc/mei/client.c | |||
@@ -704,7 +704,7 @@ int mei_cl_flow_ctrl_creds(struct mei_cl *cl) | |||
704 | if (cl->mei_flow_ctrl_creds > 0) | 704 | if (cl->mei_flow_ctrl_creds > 0) |
705 | return 1; | 705 | return 1; |
706 | 706 | ||
707 | me_cl = mei_me_cl_by_id(dev, cl->me_client_id); | 707 | me_cl = mei_me_cl_by_uuid_id(dev, &cl->cl_uuid, cl->me_client_id); |
708 | if (!me_cl) { | 708 | if (!me_cl) { |
709 | cl_err(dev, cl, "no such me client %d\n", cl->me_client_id); | 709 | cl_err(dev, cl, "no such me client %d\n", cl->me_client_id); |
710 | return -ENOENT; | 710 | return -ENOENT; |
@@ -738,7 +738,7 @@ int mei_cl_flow_ctrl_reduce(struct mei_cl *cl) | |||
738 | 738 | ||
739 | dev = cl->dev; | 739 | dev = cl->dev; |
740 | 740 | ||
741 | me_cl = mei_me_cl_by_id(dev, cl->me_client_id); | 741 | me_cl = mei_me_cl_by_uuid_id(dev, &cl->cl_uuid, cl->me_client_id); |
742 | if (!me_cl) { | 742 | if (!me_cl) { |
743 | cl_err(dev, cl, "no such me client %d\n", cl->me_client_id); | 743 | cl_err(dev, cl, "no such me client %d\n", cl->me_client_id); |
744 | return -ENOENT; | 744 | return -ENOENT; |