diff options
author | Alexander Usyskin <alexander.usyskin@intel.com> | 2014-02-17 14:13:20 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-18 19:05:07 +0100 |
commit | 285e2996655b7bbfb5eb83076a7d7e6f03e2f5c2 (patch) | |
tree | 2c90567eed399090fd5c41cd6ae88eeaef6246da /drivers/misc/mei/main.c | |
parent | mei: Remove all bus devices from the mei_dev list when stopping the MEI (diff) | |
download | linux-285e2996655b7bbfb5eb83076a7d7e6f03e2f5c2.tar.xz linux-285e2996655b7bbfb5eb83076a7d7e6f03e2f5c2.zip |
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.c | 2 |
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, if (i < 0 || dev->me_clients[i].props.fixed_address) { dev_dbg(&dev->pdev->dev, "Cannot connect to FW Client UUID = %pUl\n", &data->in_client_uuid); - rets = -ENODEV; + rets = -ENOTTY; goto end; } |