Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2097275imm; Sat, 29 Sep 2018 10:18:55 -0700 (PDT) X-Google-Smtp-Source: ACcGV62b8DncU/e+ubX89wM5sTfF+T2ejwhp6S6rsf+SdSKfpoSnBElLJqI0WfmWy/wsylaEc0BB X-Received: by 2002:a63:e05:: with SMTP id d5-v6mr3633287pgl.272.1538241535242; Sat, 29 Sep 2018 10:18:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538241535; cv=none; d=google.com; s=arc-20160816; b=bMXxjGqRWZwOJJJlppcBYmrTjcgpGbRB9aBb6rTqsceYzXKKhN641iqeMBGIggOUtL qbkbSPF0tOQr1wfTYMPJxI6gSRwFeRX8o5XlVKwBNcbBS4/Bb53iALE5kPsBLW6lodkQ 0i2vfM6jki8GeBzPuP3bSWeG5mNOAD8ocF5fcT+VU6Nzo6tzg223A8KQ6by2s6Ptf8DQ Rhb9d2ei+4k3KdXuU3bSJ/LySZunto+PhIcLNaIX7ECN/hZo3F2xxizlCjDCIW87ydBG brTomOvV2LL1J9awETMJHDkDJycaixMC6Ffz8P3ItLBt9SQ0YDfcWjQdl/HRDjlfPZyz xA0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Q5bPYfPZzaK4Vyr9cCxfy3FRmamZ5GaIz+GeT+IoJdc=; b=N38ko5LvcDYT4KlO7rXka9Zw9m24tgMIJaO63ExcWQCJ8Xrde43HPiLX9yhbi5LH3y dn7XNQx44cpz3WHysyJwANjOYZQjykml4FJty7qpcfl7emJ1opNCmsTT+kUgEXKXolVh UI5YzrculRc0gUAk4y6xPQMY2cDRz8SblI/k9bFJ7a+4XnBmrzIjUVdKVB9Jhlej1yE0 H5WbhvUL+Vm2H84+f017APkceWaJGyAEQLhkL/hWGpb5R5d6hwcbpZvDz0n8BvhTZfMZ 5kae/840ky/S5tkBkctoipiM7tLUc9TgBuhw4Z4yOjnNiOkn1fGHDU2Ag29JE5yRqv5O 4ABA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=NIVV6f9d; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v14-v6si7766733pgo.449.2018.09.29.10.18.40; Sat, 29 Sep 2018 10:18:55 -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; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=NIVV6f9d; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728606AbeI2Xrp (ORCPT + 99 others); Sat, 29 Sep 2018 19:47:45 -0400 Received: from mail-by2nam01on0040.outbound.protection.outlook.com ([104.47.34.40]:44437 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728462AbeI2Xro (ORCPT ); Sat, 29 Sep 2018 19:47:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Q5bPYfPZzaK4Vyr9cCxfy3FRmamZ5GaIz+GeT+IoJdc=; b=NIVV6f9d037OrFG8tfkygq1bcKNXzuaXRpL1ixxJ6AEHVbOjMWltnFrL3WBO4RaUBPj+aKKpxLhVyZWbaQFlCPtAW4/uUH+Wi8ULJHb2lDSefZ3ouEIIRlAuU2EhB2q9Srao3MyrXFUK5l+JEIfifu/NYZ9VaGT8Ue+jqDyd810= Received: from MWHPR02CA0024.namprd02.prod.outlook.com (2603:10b6:300:4b::34) by BL0PR02MB4467.namprd02.prod.outlook.com (2603:10b6:208:4a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.20; Sat, 29 Sep 2018 17:18:25 +0000 Received: from SN1NAM02FT036.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::202) by MWHPR02CA0024.outlook.office365.com (2603:10b6:300:4b::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1164.22 via Frontend Transport; Sat, 29 Sep 2018 17:18:24 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by SN1NAM02FT036.mail.protection.outlook.com (10.152.72.149) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1185.13 via Frontend Transport; Sat, 29 Sep 2018 17:18:24 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1g6Isp-0005ZE-V4; Sat, 29 Sep 2018 10:18:23 -0700 Received: from [127.0.0.1] (helo=xsj-smtp-dlp1.xlnx.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1g6Isk-0001eE-NL; Sat, 29 Sep 2018 10:18:18 -0700 Received: from xsj-pvapsmtp01 (xsj-smtp.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w8THIHrb021904; Sat, 29 Sep 2018 10:18:17 -0700 Received: from [172.23.37.150] (helo=ubuntu) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1g6Isj-0001e1-Eq; Sat, 29 Sep 2018 10:18:17 -0700 Received: by ubuntu (Postfix, from userid 13245) id A32503C4060; Sat, 29 Sep 2018 11:18:16 -0600 (MDT) From: Radhey Shyam Pandey To: , , , , CC: , , Subject: [PATCH v2 2/4] dmaengine: xilinx_dma: Refactor axidma channel validation Date: Sat, 29 Sep 2018 11:17:58 -0600 Message-ID: <1538241480-13844-3-git-send-email-radhey.shyam.pandey@xilinx.com> X-Mailer: git-send-email 2.4.4 In-Reply-To: <1538241480-13844-1-git-send-email-radhey.shyam.pandey@xilinx.com> References: <1538241480-13844-1-git-send-email-radhey.shyam.pandey@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-Result: No--6.480-7.0-31-1 X-imss-scan-details: No--6.480-7.0-31-1;No--6.480-5.0-31-1 X-TM-AS-User-Approved-Sender: No;No X-TM-AS-Result-Xfilter: Match text exemption rules:No X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(346002)(396003)(136003)(376002)(39860400002)(2980300002)(438002)(199004)(189003)(476003)(126002)(50226002)(54906003)(11346002)(6266002)(48376002)(446003)(14444005)(16586007)(50466002)(90966002)(42186006)(106002)(2201001)(106466001)(6666003)(47776003)(2616005)(426003)(63266004)(486006)(76176011)(8676002)(316002)(34290500001)(305945005)(186003)(2906002)(4326008)(26005)(8936002)(81166006)(7049001)(52956003)(51416003)(81156014)(478600001)(103686004)(356003)(36756003)(5660300001)(110136005)(336012)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL0PR02MB4467;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;LANG:en;PTR:unknown-60-83.xilinx.com;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;SN1NAM02FT036;1:2ksvmRBPdDtD9wMXAig0eQSrO2sWyfNUk9e7CP4quKoz/FyMsP/vDH085IGtAT43GpAHJx/XBGg76gNcdVzlsHkBt7OwCjjnFgaVqLbwEKqxseqdEXgqdg2M1Hvs3FT8 MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: aef0df8d-9068-4ac2-f9a7-08d6262f904b X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BL0PR02MB4467; X-Microsoft-Exchange-Diagnostics: 1;BL0PR02MB4467;3:q2wj/fuXYr00rWhBq/qhF4gZqJyPpF4aPjHJDf8Ow3d0V5GzlHBdnQepAJ9gx5UtEyEXEVJjF/FJus922sEOkvx3v/mZoPjiZ0ksvPhrvyg5THPnGEgX5WMMgvYZPkNWmt7R/5AFfjIi25qkY5MpDUTqIhyB5MkgK4EHnQBgBr/DJHFOd30zf2VoqYka47CipohbxHYk1zpWWoQZFr0sCvPd5llojaWcFmHGgNvm1v5+1JELMHXUDbOL2WtZl0M3MFmwyrC5xUmkfH3D+fmgXXHfeGfVcqgXxJQUYLhVOzuQcELe1tqGThcMC7GhWf1rnLfxPFlEWweLAnZXG+TD+/hzZJ4ecig0NiN/jwwHY/g=;25:RjoD7CB2X2A3K80PNaY3Wth393R6R38Zec/YgRw//MthFbKCl+TyVGSe65B5LTiklcqNs2cGikA+yzXZP7vmGhxZT8DAJjaocxUiL3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ppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(163750095850)(192813158149592); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231355)(944501410)(52105095)(10201501046)(93006095)(93004095)(6055026)(149066)(150057)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(201708071742011)(7699051);SRVR:BL0PR02MB4467;BCL:0;PCL:0;RULEID:;SRVR:BL0PR02MB4467; X-Microsoft-Exchange-Diagnostics: 1;BL0PR02MB4467;4:HQ+Nq8GOG/FY47UBwz3vwuPtOXV/DhtAFGe0Ve4yCk1zp25m+sob9hJuqaYjFtXpqWQQmrZmq46B3DXErL0Yup2EzVeF12H2XYqUpaWWIIGzOZ941QD1VjHdXkSYYdUdN3sX1mlSw4Lc2llP26dOmo7whHK93H61hVmy4n2hlvUjPXV1+wdIOBgXVkFaEHHyTvNXvxuRQK/UdYczLPRHEsnEekMINRyqxs9HdVmzGZq2/HyG2I6ycegwvTPdHg/GrA+zxToRcGltOxyNmFVeBaqpbqvnJVYlyc8iat81um07b7yiDadLtFExDhvQ6mV9yFj7IkWng61L1B1qCyyrAYnnOACinbBvVjFgUlEjJ08= X-Forefront-PRVS: 0810818DA0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL0PR02MB4467;23:4blUcqoC/DQoqdARXF2BQfrHfDnRcW+6zLcYDgd1c?= =?us-ascii?Q?nXoLt+s7gyt7BOs05YgagO4j+JTbf9xH4K7EjDuruX6lnWZA0Bo2ijOCEn9Q?= =?us-ascii?Q?UFGeHC6UjQbC3iNUaJlAJKgPN6AnTQM031NZctZnyGPcDl4IsX+xhvs3mUyu?= =?us-ascii?Q?u2yZVi5rvxqgI1Y/8V2hy4LG65hkmeIlCVgNH4w4GzL0s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iTrfM66IbOqr1tKN6E/sffvJ2F001YXA4B2eB2nZjiPmpWHVHWoRuOiFFjsbuD8W7H212/A3R32zE+EJzczBrdt0ags9jORWuImeP06iG+otfWueOqyVFWh2m/0/nhusehXCpSuMfmlrbxzYRbUNbPM=;7:c+V7CpYG9mbutNXKONU1SWrQYGiM7qh1mLgfhqLpbiCL5h5NVza6CQCvlVPf/LwiRAP41wsNB/wXHcx1SH2AEy0p4dyxc0v/4uwR+LCfNpEu17SiXI5UNXHk4OVEXMhmqqFgqiSGML4CmuktjkCLLyYYyUPaDWtvzFtMWBofCmpGgItkZGlzj6bmrkLhGNnEuNAO+jxjq0I0YzvDGaXjpEdJUF/+zMIw/FnArmxRTO6VQx3GYPR8tvv6qxZN5iLv SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2018 17:18:24.3220 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aef0df8d-9068-4ac2-f9a7-08d6262f904b X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR02MB4467 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In axidma start_transfer, prefer checking channel states before other params i.e pending_list. No functional change. Signed-off-by: Radhey Shyam Pandey --- Changes for v2: Modified the commit message to mark it as non-functional change. --- drivers/dma/xilinx/xilinx_dma.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/xilinx/xilinx_dma.c b/drivers/dma/xilinx/xilinx_dma.c index 06d1632..a37871e 100644 --- a/drivers/dma/xilinx/xilinx_dma.c +++ b/drivers/dma/xilinx/xilinx_dma.c @@ -1271,10 +1271,10 @@ static void xilinx_dma_start_transfer(struct xilinx_dma_chan *chan) if (chan->err) return; - if (list_empty(&chan->pending_list)) + if (!chan->idle) return; - if (!chan->idle) + if (list_empty(&chan->pending_list)) return; head_desc = list_first_entry(&chan->pending_list, -- 1.7.1