Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3359558imm; Tue, 17 Jul 2018 03:34:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdIQgAHb4H2CyugiwMLn+vpkEapQc6jPyrw97gcOmUILIzOkSzpieOqUkLU7NJ/YNLbKkyx X-Received: by 2002:a62:d94a:: with SMTP id s71-v6mr112280pfg.164.1531823680978; Tue, 17 Jul 2018 03:34:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531823680; cv=none; d=google.com; s=arc-20160816; b=FOaLe8Gmf3O0ccZ+uCQ0pcl2rGLnCh2grL4FehW4Mqf9wTkr3lA0vIvlkwxmu5kwbt a0HSi8Yfu42c/Iiffxzu+u0o5tHz3rB3bNABBHDoG24Az+GJhn17s61NysJzGPCro9Hv 6OgQZDCPI3kpizb7b8RnvFecc/QhoRNXO+9QyqqSX6HnJc4mfdll7reulXKKFBTit0Rw pK22gqLAGkMqCxXtqJNtyye5UdIHeGX9OJXxumL8UQs3u1AGZCD7hwC4KtS1GicD+ZDg tR4WzVCj3TUf9KXeG4h+6eX2jCQTtOnBTlhQCTlQo2FzJ4YwCybpzlKJQAd0ksgpFFQo O5Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=6NcSRzPi70FhMnn7ZfNh9UBWUT9aJJa7YtvLecDR+EI=; b=B2jrRms1U+Ws0GeM0Us6ggqXrv+oAqtJMzqyjp/kflbjc4RE8nis9I3rc5KT51OmMS ikFyhHJkCBy4yXqSSLnbyHY73wuXo0yyh2Hg8xNzL5uh10OzXWktyZqEJlJhNTnDY6WP Czb5rVfFTzXyDPnAnOEjT4ZvgVK2w6WGB/kfGq3hue3FyLta8+pbLpugj3uvV9qsaMBE qOjsmd1NCgGnodf4Cc+cqAXkOpdCtaUNM928gAjZSFvHooyQPcHHOJsyIRnE808yVo5x jzK0BnIA8dxXrzkYITpQOM77pwGy433YcFPhQIkNvFNK3vRiROOxBfb1IDMvicoqH6gy 16Qg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12-v6si554473pfh.346.2018.07.17.03.34.25; Tue, 17 Jul 2018 03:34:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731058AbeGQLFo (ORCPT + 99 others); Tue, 17 Jul 2018 07:05:44 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:53734 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729717AbeGQLFn (ORCPT ); Tue, 17 Jul 2018 07:05:43 -0400 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6HAUNdQ022406; Tue, 17 Jul 2018 03:33:42 -0700 Received: from il-exch02.marvell.com ([199.203.130.102]) by mx0b-0016f401.pphosted.com with ESMTP id 2k7gpg8rt6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 17 Jul 2018 03:33:42 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by IL-EXCH02.marvell.com (10.4.102.221) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 17 Jul 2018 13:33:39 +0300 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 17 Jul 2018 03:33:37 -0700 Received: from hannah.il.marvell.com (unknown [10.4.50.2]) by maili.marvell.com (Postfix) with ESMTP id B21513F7040; Tue, 17 Jul 2018 02:58:17 -0700 (PDT) From: To: , , CC: , , , , , , Hanna Hawa Subject: [PATCH 3/5] dmaengine: mv_xor_v2: convert callback to helper function Date: Tue, 17 Jul 2018 13:30:01 +0300 Message-ID: <1531823403-3683-4-git-send-email-hannah@marvell.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1531823403-3683-1-git-send-email-hannah@marvell.com> References: <1531823403-3683-1-git-send-email-hannah@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-17_03:,, signatures=0 X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=902 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807170109 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hanna Hawa This is in preperation of moving to a callback that provides results to the callback for the transaction. The conversion will maintain current behavior and the driver must convert to new callback mechanism at a later time in order to receive results. Signed-off-by: Hanna Hawa --- drivers/dma/mv_xor_v2.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/dma/mv_xor_v2.c b/drivers/dma/mv_xor_v2.c index e718498..14e2a7a 100644 --- a/drivers/dma/mv_xor_v2.c +++ b/drivers/dma/mv_xor_v2.c @@ -589,9 +589,8 @@ static void mv_xor_v2_tasklet(unsigned long data) */ dma_cookie_complete(&next_pending_sw_desc->async_tx); - if (next_pending_sw_desc->async_tx.callback) - next_pending_sw_desc->async_tx.callback( - next_pending_sw_desc->async_tx.callback_param); + dmaengine_desc_get_callback_invoke( + &next_pending_sw_desc->async_tx, NULL); dma_descriptor_unmap(&next_pending_sw_desc->async_tx); } -- 1.9.1