Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1208731

Re: [PATCH] dmaengine: fix balance of privatecnt inc/dec operations

From Vinod Koul <vinod.koul@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH] dmaengine: fix balance of privatecnt inc/dec operations
Date 2015-08-17 19:20 +0200
Message-ID <pYweK-5m4-23@gated-at.bofh.it> (permalink)
References <pUN4u-557-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Aug 07, 2015 at 12:26:47PM +0200, Robert Baldyga wrote:
> 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.

Applied, thanks

-- 
~Vinod

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] dmaengine: fix balance of privatecnt inc/dec operations Robert Baldyga <r.baldyga@samsung.com> - 2015-08-07 12:30 +0200
  Re: [PATCH] dmaengine: fix balance of privatecnt inc/dec operations Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-08-10 02:20 +0200
  Re: [PATCH] dmaengine: fix balance of privatecnt inc/dec operations Vinod Koul <vinod.koul@intel.com> - 2015-08-17 19:20 +0200

csiph-web