dmaengine: ti-dma-crossbar: Fix dra7 reserve function
authorAlexander Smirnov <asmirnov@ilbers.de>
Thu, 24 Aug 2017 14:02:59 +0000 (17:02 +0300)
committerVinod Koul <vinod.koul@intel.com>
Mon, 28 Aug 2017 16:32:05 +0000 (22:02 +0530)
commita2f6721b42bd503e2cced065f7dfbe8e79d59a09
treeba38a87e6b0b3cd220c09ffcc4798f75061b26e7
parentb753351ec8f4c6a25c6d9b5c4eccce62e448a571
dmaengine: ti-dma-crossbar: Fix dra7 reserve function

DMA crossbar uses 'xbar->dma_inuse' variable to manage allocated routes.
Each bit represents respective DMA channel. If the channel is free, bit
is set to '0', if channel is allocated, bit should be set to '1'.

In reserve function, the bits for requested DMA channels are cleared, so
they are not really reserved, but freed and become ready for allocation.

Signed-off-by: Alexander Smirnov <asmirnov@ilbers.de>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ti-dma-crossbar.c