mei: make return values consistent across the driver
authorAlexander Usyskin <alexander.usyskin@intel.com>
Wed, 19 Feb 2014 15:35:49 +0000 (17:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2014 23:15:57 +0000 (15:15 -0800)
commit7ca96aa278f8b9983184e318b06a0ed9ad0297b8
treeb01220d624e9fbf70258a96890be25b56405c11e
parent9d098192c3d45ab6dd90ae87d649950a9ef70ccb
mei: make return values consistent across the driver

1. Propagate ENOTTY  to user space if the client is not present
in the system
2. Use ETIME consistently on timeouts
3. Return EIO on write failures
4. Return ENODEV on recoverable device failures such as resets

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/amthif.c
drivers/misc/mei/client.c
drivers/misc/mei/hbm.c
drivers/misc/mei/hw-me.c
drivers/misc/mei/interrupt.c
drivers/misc/mei/main.c
drivers/misc/mei/nfc.c
drivers/misc/mei/wd.c