diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2018-11-22 12:11:38 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-26 16:59:48 +0100 |
commit | 2513eb0dd7ba8a8766b9642075c19ac5f2d5463b (patch) | |
tree | 034c9a02290754acfcddd8341eb5249015c32221 /drivers/misc/mei/hbm.c | |
parent | mei: hbm: setup dma ring (diff) | |
download | linux-2513eb0dd7ba8a8766b9642075c19ac5f2d5463b.tar.xz linux-2513eb0dd7ba8a8766b9642075c19ac5f2d5463b.zip |
mei: hw: add dma ring control block
The DMA ring control block contains write and read
indices for host and device circular buffers.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/hbm.c')
-rw-r--r-- | drivers/misc/mei/hbm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/mei/hbm.c b/drivers/misc/mei/hbm.c index b458c5612245..78c26cebf5d4 100644 --- a/drivers/misc/mei/hbm.c +++ b/drivers/misc/mei/hbm.c @@ -323,6 +323,8 @@ static int mei_hbm_dma_setup_req(struct mei_device *dev) req.dma_dscr[i].size = dev->dr_dscr[i].size; } + mei_dma_ring_reset(dev); + ret = mei_hbm_write_message(dev, &mei_hdr, &req); if (ret) { dev_err(dev->dev, "dma setup request write failed: ret = %d.\n", |