]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mei: prevent queuing new flow control credit.
authorAlexander Usyskin <alexander.usyskin@intel.com>
Thu, 7 Jan 2016 12:46:36 +0000 (14:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 06:06:43 +0000 (22:06 -0800)
commit13cf988562b0c7f06e0016bea2b5304358397702
treed3da0573389d0625ecf182028762978cece63365
parent2bcfdc23c6a418b441a1d17f237e9ea347e2fb1f
mei: prevent queuing new flow control credit.

The MEI  FW can receive only one flow control for read.
Currently the driver only checks if a flow control credit was already
sent and read is pending in the rd_pending queue, but it also has to
check if flow control credit already queued in the write control queue
to prevent sending more than one flow control credits.

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