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


Groups > linux.kernel > #1452835

Re: [PATCH V2] dmaengine: qcom_hidma: release the descriptor before the callback

From Timur Tabi <timur@codeaurora.org>
Newsgroups linux.kernel
Subject Re: [PATCH V2] dmaengine: qcom_hidma: release the descriptor before the callback
Date 2016-07-31 16:20 +0200
Message-ID <s0ZKW-1cv-15@gated-at.bofh.it> (permalink)
References <s0ZKW-1cv-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Sinan Kaya wrote:
> +	list_for_each_entry_safe(mdesc, next, &list, node) {
>   		enum dma_status llstat;
> +		dma_async_tx_callback callback;
> +		void *param;
>
>   		desc = &mdesc->desc;
>
> @@ -132,18 +135,19 @@ static void hidma_process_completed(struct hidma_chan *mchan)
>   		spin_unlock_irqrestore(&mchan->lock, irqflags);
>
>   		llstat = hidma_ll_status(mdma->lldev, mdesc->tre_ch);
> -		if (desc->callback && (llstat == DMA_COMPLETE))
> -			desc->callback(desc->callback_param);
> +		callback = desc->callback;
> +		param = desc->callback_param;

It looks to me like 'callback' and 'param' are never actually used.

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the
Code Aurora Forum, hosted by The Linux Foundation.

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


Thread

[PATCH V2] dmaengine: qcom_hidma: release the descriptor before the callback Sinan Kaya <okaya@codeaurora.org> - 2016-07-31 16:20 +0200
  Re: [PATCH V2] dmaengine: qcom_hidma: release the descriptor before  the callback Timur Tabi <timur@codeaurora.org> - 2016-07-31 16:20 +0200

csiph-web