]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mei: hbm: revamp client connect and disconnection status
authorAlexander Usyskin <alexander.usyskin@intel.com>
Mon, 17 Feb 2014 13:13:20 +0000 (15:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Feb 2014 18:05:07 +0000 (10:05 -0800)
commit285e2996655b7bbfb5eb83076a7d7e6f03e2f5c2
tree2c90567eed399090fd5c41cd6ae88eeaef6246da
parent487056932d372cc4f6c636f21a928d6667b151d7
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>
drivers/misc/mei/client.c
drivers/misc/mei/hbm.c
drivers/misc/mei/hw.h
drivers/misc/mei/main.c