FAILED: patch "[PATCH] mei: reset flow control on the last client disconnection" failed to apply to 4.1-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 4.1-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
Quoted 1 line
From
c241e9b1d9ee7292d708d2298bc87f1455aad0c7Mon Sep 17 00:00:00 2001
From: Alexander Usyskin <[email protected]>
Date: Sat, 13 Jun 2015 21:18:40 +0300
Subject: [PATCH] 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 <[email protected]> #4.1
Signed-off-by Alexander Usyskin <[email protected]>
Signed-off-by Tomas Winkler <[email protected]>
Signed-off-by Greg Kroah-Hartman <[email protected]>
drivers/misc/mei/client.c +3 -0
@@ -755,6 +755,9 @@ void mei_cl_set_disconnected(struct mei_cl *cl)if (!WARN_ON (cl->me_cl->connect_count ==0 )) cl->me_cl->connect_count--; +if (cl->me_cl->connect_count ==0 ) + cl->me_cl->mei_flow_ctrl_creds =0 ; +mei_me_cl_put (cl->me_cl); cl->me_cl =NULL ; }