diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2015-05-04 08:43:52 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-24 20:13:10 +0200 |
commit | 3c66618295ca5fb0fde32e60e5f26557a5fcad5e (patch) | |
tree | 111e00e29132de08f626019f2b003cd355b6ae00 /drivers/misc/mei/bus.c | |
parent | mei: txe: reduce suspend/resume time (diff) | |
download | linux-3c66618295ca5fb0fde32e60e5f26557a5fcad5e.tar.xz linux-3c66618295ca5fb0fde32e60e5f26557a5fcad5e.zip |
mei: revamp client disconnection flow
Split disconnected state into two parts first reception disconnect
response from the firmware and second actually setting of disconnected
state. Book keeping data are needed for processing and after firmware
disconnected the client and are cleaned when setting the disconnected
state in mei_cl_set_disconneted() function.
Add mei_cl_send_disconnect to reduce code duplication.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/bus.c')
-rw-r--r-- | drivers/misc/mei/bus.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c index 4cf38c39878a..873c1b6e45e8 100644 --- a/drivers/misc/mei/bus.c +++ b/drivers/misc/mei/bus.c @@ -480,8 +480,6 @@ int mei_cl_disable_device(struct mei_cl_device *device) goto out; } - cl->state = MEI_FILE_DISCONNECTING; - err = mei_cl_disconnect(cl); if (err < 0) { dev_err(dev->dev, "Could not disconnect from the ME client"); |