From: Robert Baldyga Date: Fri, 7 Aug 2015 10:26:47 +0000 (+0200) Subject: dmaengine: fix balance of privatecnt inc/dec operations X-Git-Tag: omap-for-v4.3/fixes-merge-window~82^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05aa1a77dcf1b9f9c4fedf09a0a53e15d6b21738;p=pandora-kernel.git dmaengine: fix balance of privatecnt inc/dec operations This patch increments privatecnt value and set DMA_PRIVATE in device caps in dma_request_slave_channel() function. This is needed to keep privatecnt increment/decrement balance. As function dma_release_channel() decrements privatecnt counter, we need to increment it when channel is requested. Otherwise privatecnt drops into negatives after few dma_release_channel() calls. Reported-by: Krzysztof Kozlowski Signed-off-by: Robert Baldyga Signed-off-by: Vinod Koul --- Reading git-diff-tree failed