mei: reduce flow control only for completed messages
authorTomas Winkler <tomas.winkler@intel.com>
Tue, 23 Apr 2013 04:38:12 +0000 (07:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Apr 2013 17:29:58 +0000 (10:29 -0700)
commit70135393812f4aa10aa891725786a7657064c2fc
tree1cda8108939b16f7e76e6b25ef009e0f4c71a8ce
parent0cfee51c7c1fa47d81b3d116df3b53c586aac422
mei: reduce flow control only for completed messages

This fixes bug when only first chunk of a large message split
by hbuf_max_len is written to the hardware.
All the consequent chunks will not get a new credit.

A regression introduced by the commit
0ef319c93cebff9f82bdd0cdbb298f2dd00acda8
mei: streamline write complete flow function

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/interrupt.c