Message ID | 20181029092336.11501-1-alexandru.ardelean@analog.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <dmaengine-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D52EB14DE for <patchwork-dmaengine@patchwork.kernel.org>; Mon, 29 Oct 2018 09:26:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C63DB2985E for <patchwork-dmaengine@patchwork.kernel.org>; Mon, 29 Oct 2018 09:26:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B96F429860; Mon, 29 Oct 2018 09:26:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 41D812985E for <patchwork-dmaengine@patchwork.kernel.org>; Mon, 29 Oct 2018 09:26:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729464AbeJ2SOk (ORCPT <rfc822;patchwork-dmaengine@patchwork.kernel.org>); Mon, 29 Oct 2018 14:14:40 -0400 Received: from mail-eopbgr710072.outbound.protection.outlook.com ([40.107.71.72]:3648 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729108AbeJ2SOj (ORCPT <rfc822;dmaengine@vger.kernel.org>); Mon, 29 Oct 2018 14:14:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector1-analog-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=X11THNDrhyz5cOfk88ORD6HRayo8bg75QVFmxa9Glu8=; b=pfWLOhKc3kUioMGNtcfT52aH2l0ANbhdCvC40bLHXdf6c3n8CMp4Z69c9Csty4Fj3oXoUatr+Cz/pYofalUI/9UEoXEWBuvf+bpNXDBiG8e93T8cNcBwnEFHhePoIfijgMkSoC6NkcqDEu6itEULyJ8SvSW2zf4md0POcdSCWWs= Received: from CY4PR03CA0102.namprd03.prod.outlook.com (2603:10b6:910:4d::43) by CY4PR03MB3125.namprd03.prod.outlook.com (2603:10b6:910:53::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1273.25; Mon, 29 Oct 2018 09:23:56 +0000 Received: from BN1BFFO11FD006.protection.gbl (2a01:111:f400:7c10::1:159) by CY4PR03CA0102.outlook.office365.com (2603:10b6:910:4d::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1273.19 via Frontend Transport; Mon, 29 Oct 2018 09:23:56 +0000 Authentication-Results: spf=pass (sender IP is 137.71.25.55) smtp.mailfrom=analog.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=bestguesspass action=none header.from=analog.com; Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.55 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.55; helo=nwd2mta1.analog.com; Received: from nwd2mta1.analog.com (137.71.25.55) by BN1BFFO11FD006.mail.protection.outlook.com (10.58.144.69) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1294.14 via Frontend Transport; Mon, 29 Oct 2018 09:23:56 +0000 Received: from NWD2HUBCAS9.ad.analog.com (nwd2hubcas9.ad.analog.com [10.64.69.109]) by nwd2mta1.analog.com (8.13.8/8.13.8) with ESMTP id w9T9NuTF024656 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Mon, 29 Oct 2018 02:23:56 -0700 Received: from zeus.spd.analog.com (10.64.82.11) by NWD2HUBCAS9.ad.analog.com (10.64.69.109) with Microsoft SMTP Server id 14.3.210.2; Mon, 29 Oct 2018 05:23:55 -0400 Received: from saturn.analog.com ([10.50.1.244]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id w9T9NoAP004939; Mon, 29 Oct 2018 05:23:52 -0400 From: Alexandru Ardelean <alexandru.ardelean@analog.com> To: <dmaengine@vger.kernel.org>, <dan.j.williams@intel.com>, <vinod.koul@intel.com> CC: Alexandru Ardelean <alexandru.ardelean@analog.com> Subject: [PATCH] dmaengine: dmatest: use dmaengine_terminate_sync() instead Date: Mon, 29 Oct 2018 11:23:36 +0200 Message-ID: <20181029092336.11501-1-alexandru.ardelean@analog.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-ADIRoutedOnPrem: True X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.55;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(136003)(39860400002)(396003)(346002)(376002)(2980300002)(438002)(3190300001)(199004)(189003)(14444005)(2201001)(16586007)(4326008)(51416003)(26005)(7696005)(77096007)(305945005)(575784001)(8676002)(86362001)(7636002)(106002)(316002)(5660300001)(110136005)(246002)(36756003)(106466001)(48376002)(356004)(53416004)(50466002)(47776003)(6666004)(476003)(486006)(126002)(426003)(1857600001)(186003)(478600001)(2616005)(8936002)(44832011)(50226002)(1076002)(336012)(107886003)(2906002)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR03MB3125;H:nwd2mta1.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail10.analog.com;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD006;1:QRqt1gqtoCVfEOAsPkbS13dp9T3Tuiv+x0MJJZmu8Q4aWUrFmC3DWTfrIdGRcdjSHfGOXBNKdg9+ddc7tsAjzQG/1+7mGT26KhVKE8J8/5nfIhQKW9wKokez4JWWMA73 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ecd62010-80c6-4171-24d2-08d63d804058 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:CY4PR03MB3125; X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB3125;3:AlgCIYv3wkI93O/VgWBsklifeJQF01bg0/2is5R/JJq4H7uFqdHH++AO4luuXjutzHsH0846WKPq8sQjHswFme67bGjwuPFGQXLE2yWBsfY++d3VyQU38XnlHFu48H7fYsYTImRMUJB2iI8fSRBClmcSrGN+gjpsE/gOENfCusRfHYZ/f4kge2FEI6/p7CI2BlRrUxG+/PjVU67lIigkGrfvZfZt9NULHlNWfXxX4BXtZNjJzwa00eMgYFfsBITL5rt6oLeYnIvkzOF3+iyXx5xDn+QgdtyGyqINCRN7+8zT1GbQCHx9wRcJhaEly6ErjTvtMEF7qLSC58OxNWZO4KM/heEBD0QCwRKER9BYI0E=;25:goJRJseG6MQRhT3GRpEm2ZPRkq36UEoSHUC9oBu628bTKCC/ZmD7rwW/1DOKKz6dSAVyw1qOn8m/Bmg78/96BkDjPyM84CkjzBUMRwcqxaauyHkmvAVMOBts8pnKsorKEAIv4Ie69iA47ZHhHuUQH9gr0KxJIDobzsnpPNoT41oc9P87/ccIynmXigAOg57Q6nEf0xUrVo3WATJ1iRIoDijqXHUMG5ONihldczXjYZmjczVeSMRIhl6TsXHXPZv2eltYtLQ8rK9z7qq03NKSX2GzfKzqKCiPMTZA2B+tGGZDEjCOjx7ZnJlVMLlKw/JdEim+e6bkpLHfctfxVy5WyQ== X-MS-TrafficTypeDiagnostic: CY4PR03MB3125: X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB3125;31:P77cr0v9Eduz6GVQFOWtj4os8mB9XbAAsQxHPsxNr3tainDC+604xq2VZVUBnBV41RMbWSG3VpWu0FrDvjMWMEe/PnJLVRqwp7sz/zJsGTO5UbyT4NO7LZkNt5w2kpVZshq0ZDPH20aGBJUFzTh7qGJXm0h7j0ZTlCNdeW8qcORrKNNeMBIQY4DNj8WX6329aF5UxhrFBo7kYcjLVEuW9cVDFrVATPhvZlgLZDsQOI0=;20:juAme+Bxkbr5Xh0yeqLFaeRs0D63Amy9pvp53TuMBVM5YzHJdq2NgXUrx7DV+VcPH3+STMMbIDMII2nhm6AxfVyEaT/AL/F4RhJ0Fk6hYKTjqX9bN4BkbslX/dRTczdWEFaJKFFPln5S61S7PIIknD8HYSfyhgLdCcEdafb4psBfYDq7jjk9hMbKHYUakvQWAGOUxTtEH/u6HeDPEmQ/7AtRh1z4VyS8IDgKTpIqRiv+4hQckz0NfloCAWw5YIO45rEWHIjhTSdgBSdGQTmipoKJIY3HtLijxn04aRKaTqJV+3ZcHJphUNkwOKWxzOeTe10E8tgYEjR92es+wCxl8znAFMecIWGUvS5MkPYbyU1ZYdGINbFmO/Pzb2jM2wZvdKrYJs4cBQdsivKppazZdH8dUGumFI7RE/HucvIQCpHWpvioBW5A/YECujchOn/Mr03uHSZoaGmakhIcKDRkJCzd+/+zo+qxl6maJNw6x5BGME4CjFqsYmKMMYwoLXNQ X-Microsoft-Antispam-PRVS: <CY4PR03MB31252E58FF4D1EDD03E0C587F9F30@CY4PR03MB3125.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(232431446821674); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231382)(944501410)(52105095)(93006095)(93004095)(10201501046)(3002001)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:CY4PR03MB3125;BCL:0;PCL:0;RULEID:;SRVR:CY4PR03MB3125; X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB3125;4:/bT9PBpNKobb13nCP3dnoO8Xta/fuQx2BHHPrvfmJLw3EQF1dvpYz9y+4I2//qzD3NAahDNIP7Vy6ZHhqnweAZ6OEVGxXw5wECnq0WveGIykSqVrMrSfK+eyuhDepy4k84DRpBKqswjh1Q24FOxIQ+A15Iz9fLQYRBCLmk8kYuakYF7gEhmSDDmeBVAFgOLx6BrxDsIVBQuBtKyefQODZRj1x1K5NsR6hmVSTU1W/dFKsSZkXnKZKLWkPjB5bIR9apWsyQ6y7gGZtQfK6ZloZ+ghUhxjP+r54Ydy41YhKItOFc4coyOikKWZpE+lHzPL X-Forefront-PRVS: 084080FC15 X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB3125;23:qLhGRIecigyMtY9/i1gOMlBcQeDI5N6mqZFi1dfJtOM46/XINFt7XarZkgw8LH3GQ45sTETATwca6t5dDYCQ70pv8f4X2trdsQP9Oo0qRxYt11Lgx+5GcDQVHEFKjDVfmiAHSJ1zjeV6N5DAYHHzDza6XEezOnNoN1y/JzwzNwZ+ZrA6cY+GSzRyejmlYG+FMxOltAFxlk467vPaz2SVi9yCxHx1aOMlFM5hs+XzJvgtuGwhiWOdaHkgrHifX2WKkVtlXTAoP9SZRkEHQlhCKAYKUMhSm1gOPSstcU/PXG9ijN55Ql26/Lz5LTt+ONPXsU/4K/wMefv+Lsbc4UCefUXRDzvV0WZRnd1axstehzJjD8QmUhAlLX22hP1auzBeLNi8v0HUjUoUGZT0IExrTh720DhaMuQoyzS0DI2MwM/ea64inAItS/4yIdvCIxDgpMas7xly2Ete3q8rVcIsP1AxUlSEsrmKuIavVu6z4CF0BpeXhvDWii7M/txBmK5xOaM6B7f8pbCa5fKjNZ7NLjf820JnGHwj6RugtA9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4IGyg18y8TK5t+y46ij0JkMF5M09cXwtv8Csf39CzfuPTUeRI8Jn4cTNphDoQ5hGGGNGaKopzYvhKBCuzSQdK9WlbY9eoTh+SMmtNaIXcEvOyHC2AVZh7Qa7T2odoluEzNY7+pmd8ZZv1j464/YEvL58P9HOtmm4gnctp2TqxpP2+cJqoMQNNO0oIXoxFcGzhorThv9X5v09Uh0oP0RESe4nCQgMKIxsJ2b3v6HaplMggGad6nPwj38LYhYzrhWmt80cmNlPB2iIO7+XctzxlTjWeKOEcUssV9aMQfHPpdAL3eJ8aPUwMsh/GscLX/j++2oOzHx83jaoGrwtGmOy1EI9Ad1DPCywFmWzDWBCLr4ruBU088MVkOJLg0r+QlJoI/4i1IwxtJXqKpcRaZXAyq1VntrLQ==;5:LLJBTG05mpSm7pUCdCkwKzbo5LyBafCbTFiXTiV8DF4QxKLCBSGixn+gKBllp/4+bYOFMj2UDLr8MJOyK1ryfHOmO3p/WutiSydM55deGE92AlvcfcHmLRWoOjNYfpDB8irv1d8pvxFs533WOpofF0aJg55/ElzAL+mhpaey90U=;7:PT233c4tLuNC5RM/MN8AYAhobhu3QbDKhQz1zqN47VGfGxrw7AKf+wsaFtALe4uLu6NzkNGRFbLdwlfGOMLoR9PswaM13St/rZcu8tItL1rXdEEMchX48xOeR6A/tfyWjkMV8vxYbhMjIilSXqvCbQ== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2018 09:23:56.3036 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ecd62010-80c6-4171-24d2-08d63d804058 X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.55];Helo=[nwd2mta1.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR03MB3125 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: <dmaengine.vger.kernel.org> X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
dmaengine: dmatest: use dmaengine_terminate_sync() instead
|
expand
|
On 29-10-18, 11:23, Alexandru Ardelean wrote: > The `dmaengine_terminate_all()` is marked as deprecated, so update the test > with `dmaengine_terminate_sync()` which is the recommended alternative. Applied, thanks
diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c index aa1712beb0cc..9cd09e8f9b4f 100644 --- a/drivers/dma/dmatest.c +++ b/drivers/dma/dmatest.c @@ -812,7 +812,7 @@ static int dmatest_func(void *data) /* terminate all transfers on specified channels */ if (ret || failed_tests) - dmaengine_terminate_all(chan); + dmaengine_terminate_sync(chan); thread->done = true; wake_up(&thread_wait); @@ -836,7 +836,7 @@ static void dmatest_cleanup_channel(struct dmatest_chan *dtc) } /* terminate all transfers on specified channels */ - dmaengine_terminate_all(dtc->chan); + dmaengine_terminate_sync(dtc->chan); kfree(dtc); }
The `dmaengine_terminate_all()` is marked as deprecated, so update the test with `dmaengine_terminate_sync()` which is the recommended alternative. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> --- drivers/dma/dmatest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)