diff options
author | Alexander Usyskin <alexander.usyskin@intel.com> | 2016-07-26 01:06:03 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-30 15:39:42 +0300 |
commit | 46978ada7dc669bf13f860798664b587dbc05ce5 (patch) | |
tree | 9f2fbfc41e85552862304eeefd1da5cc6d304005 /drivers/misc/mei/amthif.c | |
parent | e51dfa5a7f89b2c96371559b0c9772fd41376464 (diff) | |
download | linux-46978ada7dc669bf13f860798664b587dbc05ce5.tar.xz |
mei: rx flow control counter
Use RX flow control counter in the host client structure to
track the number of simultaneous outstanding reads.
This eliminates search in queues and makes ground for
enabling for parallel read.
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>
Diffstat (limited to 'drivers/misc/mei/amthif.c')
-rw-r--r-- | drivers/misc/mei/amthif.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/mei/amthif.c b/drivers/misc/mei/amthif.c index 26568c5beb25..227fd5a816a6 100644 --- a/drivers/misc/mei/amthif.c +++ b/drivers/misc/mei/amthif.c @@ -202,6 +202,7 @@ static int mei_amthif_read_start(struct mei_cl *cl, const struct file *file) return -ENOMEM; list_add_tail(&cb->list, &dev->ctrl_wr_list.list); + cl->rx_flow_ctrl_creds++; dev->iamthif_state = MEI_IAMTHIF_READING; cl->fp = cb->fp; |