Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2068004imm; Thu, 21 Jun 2018 06:48:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL6DysB36xtcFWisGkslxi3GcLTWS1RwidadmunNh4l+UFGflc/L8v3dY1tV3SCd6wBZ90Y X-Received: by 2002:a62:e401:: with SMTP id r1-v6mr27583036pfh.172.1529588909818; Thu, 21 Jun 2018 06:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529588909; cv=none; d=google.com; s=arc-20160816; b=uuqeo+LnJG+ASstud4qAGgecwvJm8RgFZgXItE6rBmrzqk3mty98j7tcmeQ1RH9YCg F4IIShEPEpjwo3DhvA0GFG4vFO001yYJnoSfErFBKwYcDGvnXUZDALOK4AuKvU6F1VEp 86G9MUfB+6OsPFx+89YBl0JApwFv5V/WpUqGb1zLzoRTvTxwkXu/h3RFjjK9PkX4qSPN iuaNgZkUi2vWvYr1wCaSenBdieyMOKNfoMQTfe5uU/u6jYvwE8IjqQWoF9d1BHddKhqN pJAwV4zZGPnV8zz5VwLmmcAiTJAVtDkKaYiclWyqR7wbgsa47LaV0y15TC6qyqkXPAOk eZ7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=DEnS2qBzn8qFsmdu/8ZbrexsPX63Uj4xdE/XgdflJ+Q=; b=BwfSa8JghrvhPyuzSxx2CNGOnWcNBIO9F6JH5Mk7e43M6aWAufFyEziIByKFVe41ID K7Xy4FAz65u8fb/BdINePeQz/YinZnDmocKq+fpR/fTwl3sviyR53fjZG0nq1aWNtUdX 2EhefnEwsZx5sa5iTVxLoj7rC8dgx/CI2bSTaCqkIyL+sWGejABe53FyAxSHV6RoTX84 xkTH9P7sZIwDyzTsZLBdT7xXzhRLtkEPzDoDqs8Qvt3XA+4Vkh5F7I0uWIs9JrhTazCr QZnE3117Zs6r/jsc2p43uyN6rv8DCzwNsL6kmQYRR/+BK/81siGJsfDBM4JeoUxrkmxC vlCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=opyQKywO; 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 r11-v6si3870797pgt.632.2018.06.21.06.48.15; Thu, 21 Jun 2018 06:48:29 -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=opyQKywO; 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 S933095AbeFUNqS (ORCPT + 99 others); Thu, 21 Jun 2018 09:46:18 -0400 Received: from mail-by2nam01on0076.outbound.protection.outlook.com ([104.47.34.76]:13536 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932862AbeFUNqQ (ORCPT ); Thu, 21 Jun 2018 09:46:16 -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=DEnS2qBzn8qFsmdu/8ZbrexsPX63Uj4xdE/XgdflJ+Q=; b=opyQKywO/UZmECsv6ctcPMhSw4O0DB1v4W+yPvefKAzJ1ZSgZfAxxqN9cj+r7cg1kjNkgiZ9TA48ALzdQGuqgw947phF0t5hIcGyLx/Cukn9xmQTbgzQJF+kOxVwONQGRTCzIzF91NZBGfhKmC0FiUg5KZ8H0M7PvSjuYKMZar0= Received: from DM6PR02MB4361.namprd02.prod.outlook.com (20.176.105.26) by DM6PR02MB4393.namprd02.prod.outlook.com (20.176.105.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.20; Thu, 21 Jun 2018 13:46:14 +0000 Received: from DM6PR02MB4361.namprd02.prod.outlook.com ([fe80::9cf9:1a80:115a:f9fa]) by DM6PR02MB4361.namprd02.prod.outlook.com ([fe80::9cf9:1a80:115a:f9fa%2]) with mapi id 15.20.0863.021; Thu, 21 Jun 2018 13:46:13 +0000 From: Radhey Shyam Pandey To: "andrea.merello@gmail.com" CC: "vkoul@kernel.org" , "dan.j.williams@intel.com" , Michal Simek , Appana Durga Kedareswara Rao , "dmaengine@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 2/6] dmaengine: xilinx_dma: fix completion callback is not invoked for each DMA operation Thread-Topic: [PATCH 2/6] dmaengine: xilinx_dma: fix completion callback is not invoked for each DMA operation Thread-Index: AQHUCHIQrPud7LE+Xk2xdT54xDVLUqRpD8yQgAAViQCAAY+wgA== Date: Thu, 21 Jun 2018 13:46:12 +0000 Message-ID: References: <20180620083653.17010-1-andrea.merello@gmail.com> <20180620083653.17010-2-andrea.merello@gmail.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=radheys@xilinx.com; x-originating-ip: [182.72.145.30] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM6PR02MB4393;7:W1QaiqHnPbIC5R+GApNtJ4uyfo+Tn0EfpwL8TjdJz9AWC41d2JtojOTRCtZDR0gawUvFnntKsMNc7YtG+wEudhHQImO7eNJ1jg4cTrYtLf4GLiHYYRRwyjP98T+xL0NtQMYfDQFucB+/TvnZdm4TNT3yVnAWJNJrVquplv2UvHj1jzCRqzDRIyDwrYrL8IX5MkBB+MNYPLJv3POjC2YnVoIELyB7bd4tylZhICWQ3url+AIIaITtjj6X1u9fZGcx x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10009020)(39380400002)(39860400002)(346002)(376002)(366004)(396003)(13464003)(189003)(199004)(966005)(97736004)(476003)(93886005)(478600001)(86362001)(66066001)(3846002)(6116002)(486006)(53936002)(6306002)(9686003)(55016002)(5640700003)(54906003)(2351001)(7696005)(2906002)(1361003)(11346002)(446003)(14454004)(2501003)(3280700002)(2900100001)(5250100002)(81166006)(8936002)(81156014)(8676002)(3660700001)(99286004)(25786009)(186003)(105586002)(68736007)(316002)(59450400001)(4326008)(6246003)(305945005)(39060400002)(6506007)(102836004)(26005)(106356001)(6916009)(53546011)(76176011)(55236004)(229853002)(74316002)(5660300001)(7736002)(33656002)(6436002)(422495003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR02MB4393;H:DM6PR02MB4361.namprd02.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; x-ms-office365-filtering-correlation-id: 474512ba-9505-402b-c663-08d5d77d5a67 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020);SRVR:DM6PR02MB4393; x-ms-traffictypediagnostic: DM6PR02MB4393: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(85827821059158)(258649278758335)(192813158149592)(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231254)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016);SRVR:DM6PR02MB4393;BCL:0;PCL:0;RULEID:;SRVR:DM6PR02MB4393; x-forefront-prvs: 07106EF9B9 received-spf: None (protection.outlook.com: xilinx.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: IkyUnHyAzRi3/cxcisVuFmX4RD6v3vNSZ3RBsCE1HOo+jL1SqkdFDoDsFVfoK/6bs3AjIVy/F1RXswvOoBIzsfqIBJuwMbDHeZINj0ND/urO/SkAf19sRHc9d46DrVFBQcw9JFA0M78jC2JEG7uIN2r1p5hbFyyiEYWM0sMiZXYBmBPZ4oMzlrs+DyNNK3fIUHByojFw/e8mQOhD0bvYAEglh6Uxrgb1sWp2/Q2PDVCh3gRPlPEBDYpB5FVp6vBAr9U9fggxC6/MGoeX+WaA+nDc+c2zwlFH2+SV02ZpMAc8/ilP2abGtR59dQvdc4/sTqJ6JxLaBwkhpd3s0KH9Nw== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-Network-Message-Id: 474512ba-9505-402b-c663-08d5d77d5a67 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jun 2018 13:46:12.9333 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB4393 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: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c3RfZW50cnkoJmRlc2MtPnNlZ21lbnRzLA0KPiA+PiArICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgc3RydWN0DQo+ID4+IHhpbGlueF9heGlkbWFfdHhfc2VnbWVu dCwNCj4gPj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5v ZGUpOw0KPiA+PiArDQo+ID4+ICsgICAgICAgICAgICAgICAgICAgICAvKiB3ZSd2ZSBwcm9jZXNz ZWQgYWxsIHRoZSBjb21wbGV0ZWQgZGVzY3JpcHRvcnMgKi8NCj4gPj4gKyAgICAgICAgICAgICAg ICAgICAgIGlmICghKHRhaWxfc2VnLT5ody5zdGF0dXMgJiBYSUxJTlhfRE1BX0JEX0NNUExUKSkN Cj4gPj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7DQo+ID4+ICsgICAgICAg ICAgICAgfQ0KPiA+PiAgICAgICAgICAgICAgIGxpc3RfZGVsKCZkZXNjLT5ub2RlKTsNCj4gPj4g ICAgICAgICAgICAgICBpZiAoIWRlc2MtPmN5Y2xpYykNCj4gPj4gICAgICAgICAgICAgICAgICAg ICAgIGRtYV9jb29raWVfY29tcGxldGUoJmRlc2MtPmFzeW5jX3R4KTsNCj4gPj4gQEAgLTE4MjYs MTQgKzE4MzgsMTMgQEAgc3RhdGljIHN0cnVjdCBkbWFfYXN5bmNfdHhfZGVzY3JpcHRvcg0KPiA+ PiAqeGlsaW54X2RtYV9wcmVwX3NsYXZlX3NnKA0KPiA+PiAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICBzdHJ1Y3QgeGlsaW54X2F4aWRtYV90eF9zZWdtZW50LCBub2RlKTsNCj4gPj4g ICAgICAgZGVzYy0+YXN5bmNfdHgucGh5cyA9IHNlZ21lbnQtPnBoeXM7DQo+ID4+DQo+ID4+IC0g ICAgIC8qIEZvciB0aGUgbGFzdCBETUFfTUVNX1RPX0RFViB0cmFu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