aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/main.c
diff options
context:
space:
mode:
authorAlexander Usyskin <alexander.usyskin@intel.com>2014-02-17 08:13:20 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-18 13:05:07 -0500
commit285e2996655b7bbfb5eb83076a7d7e6f03e2f5c2 (patch)
tree2c90567eed399090fd5c41cd6ae88eeaef6246da /drivers/misc/mei/main.c
parent487056932d372cc4f6c636f21a928d6667b151d7 (diff)
mei: hbm: revamp client connect and disconnection status
1. Return -ENOTTY on client connect if the requested client was not found on the enumeration list or the client was internally disabled, in the later case FW will return NOT_FOUND. 2. Return -EBUSY if the client cannot be connected because of resource contention 3. Change response status enum to have MEI_CL_ prefix 4. Add function to translate response status to a string for more readable logging Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/main.c')
-rw-r--r--drivers/misc/mei/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c
index 5424f8ff3f7f..434242bada89 100644
--- a/drivers/misc/mei/main.c
+++ b/drivers/misc/mei/main.c
@@ -471,7 +471,7 @@ static int mei_ioctl_connect_client(struct file *file,
471 if (i < 0 || dev->me_clients[i].props.fixed_address) { 471 if (i < 0 || dev->me_clients[i].props.fixed_address) {
472 dev_dbg(&dev->pdev->dev, "Cannot connect to FW Client UUID = %pUl\n", 472 dev_dbg(&dev->pdev->dev, "Cannot connect to FW Client UUID = %pUl\n",
473 &data->in_client_uuid); 473 &data->in_client_uuid);
474 rets = -ENODEV; 474 rets = -ENOTTY;
475 goto end; 475 goto end;
476 } 476 }
477 477