mei: reset flow control on the last client disconnection
authorAlexander Usyskin <alexander.usyskin@intel.com>
Sat, 13 Jun 2015 18:18:40 +0000 (21:18 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 Jun 2015 02:48:02 +0000 (19:48 -0700)
commitc241e9b1d9ee7292d708d2298bc87f1455aad0c7
tree01bc98a4e5bf1b1dfb4c754ce785bfc3666e97ba
parent5069288bd477857fd1894452aa61416f07372060
mei: reset flow control on the last client disconnection

The FW resets the flow control for single buffer clients when the last
host client disconnects, also the driver has to follow this policy and
zero the flow control counter in such case.

Cc: <stable@vger.kernel.org> #4.1
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