Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2088228yba; Wed, 3 Apr 2019 00:40:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyrFaX6RoDuwrU9eYZ51t363lW/k3JQNOpvSfXLpsuwbkVthSRHpt2shlyFx+vbI0gjTiKV X-Received: by 2002:aa7:8ac8:: with SMTP id b8mr11272770pfd.234.1554277248539; Wed, 03 Apr 2019 00:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554277248; cv=none; d=google.com; s=arc-20160816; b=pUtyhVr9Giizqf+o/bJeo9j8ribcqfFKygbVKeAtOLGMMGniLqwPjP0ggFsWhm75nv vrix34PakBTPIB+pSjS6zGFDtolEax4EXDGpnPvp9z5RCN6yrKVsdtTJWIfuICye0Nwh ZdvTsaBFg/gXRLa9pdHfYoSumU6Y/+LfMbmQJPYC4o5QWJWJhc8y44zicCwa351MaGol q689A3u3SOs3xm5ClIJGe8ikIQ369uISsDZrtQ0nYT+aKlivj6rirr/EXUfee7gUqlL/ puYsBQfNpgIa4O35MQzezFi/98IQv3vk99pzeBUnaO2iKhsRYynzwh3k+VwVDm0y+a6Y kHyA== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=do7IhXquNXyTOHVIjdKBffrN/LZi3sPRhjpn27sR8Bs=; b=Lk7rSRWOx4tkGXA43O+ueBSxGX0OhkZcr7yv3y/lujP31EdEDSZu6R8yZ9JSyVZLWr fUGO7KxG+s2TkcR7vaPVyxwwhBu8q4SUotTrSr7uZbsqZ/Dg/EfWfi3v3zIh59qdQ5iQ vdV5UzaRs0+YWIcBwVeH4qgfH+gbOsmy/RenJ3XEp/Pr9STWbt+niGwI7izXdOB7aX9F QmB07MLbf7idZuN+ptNaBU7HltTqKiCqSCW8r4kCUAt6C3xjJoyCUHVHRkoFrOxQhWUy UWrySS9B7mmxgR/owKuZiXGWnij6+K2KlDaVIAoyJ3/8VSMT4PiAKJwKmZGtgZXHoqg6 Cd9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=IDBwSGok; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l62si5298212pgd.168.2019.04.03.00.40.32; Wed, 03 Apr 2019 00:40:48 -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=@nxp.com header.s=selector1 header.b=IDBwSGok; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728798AbfDCHid (ORCPT + 99 others); Wed, 3 Apr 2019 03:38:33 -0400 Received: from mail-eopbgr40070.outbound.protection.outlook.com ([40.107.4.70]:9445 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726084AbfDCHic (ORCPT ); Wed, 3 Apr 2019 03:38:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=do7IhXquNXyTOHVIjdKBffrN/LZi3sPRhjpn27sR8Bs=; b=IDBwSGok0SxayYQC6vwAkDf0LZ4nE+O6CrVn/Fk5Kr7f3RcnIkf83Qycbij++UMx0YhaD0wvevnTTDrAOgY7vcDGMApoqgL+WedxfSwnGg0GXlLdmJ2rWPZ4sDKbiQ0MrP/5Z52RGhxN5dUf1vQkSE7Dj+cA5i3ZuS1dBzFrjPk= Received: from VI1PR04MB4543.eurprd04.prod.outlook.com (20.177.55.90) by VI1PR04MB4976.eurprd04.prod.outlook.com (20.177.49.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.17; Wed, 3 Apr 2019 07:38:25 +0000 Received: from VI1PR04MB4543.eurprd04.prod.outlook.com ([fe80::114f:6d7f:7a68:9b23]) by VI1PR04MB4543.eurprd04.prod.outlook.com ([fe80::114f:6d7f:7a68:9b23%2]) with mapi id 15.20.1750.014; Wed, 3 Apr 2019 07:38:25 +0000 From: Robin Gong To: Igor Plyatov CC: =?utf-8?B?VXdlIEtsZWluZS1Lw7ZuaWc=?= , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-spi@vger.kernel.org" , dl-linux-imx , Fabio Estevam , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Mark Brown , "dmaengine@vger.kernel.org" , Vinod Koul , Dan Williams , Andy Duan , Han Xu , Clark Wang Subject: RE: Issues with i.MX SPI DMA transfers Thread-Topic: Issues with i.MX SPI DMA transfers Thread-Index: AQHU5MQedyysM/Gs0UKoyWKgyiIok6YgnCuAgAADPICAACYCkIAAHYGAgAEpjtCABnMWgIAAEhKQgABAWQCAAT6NAA== Date: Wed, 3 Apr 2019 07:38:24 +0000 Message-ID: References: <08fcbd65-510f-84f8-d6d6-ff56aa9ca9ad@gmail.com> <20190328065247.uz73lap7ljf5q3tb@pengutronix.de> <95df9334-3d0c-7d13-e431-5a4aa2b9907e@gmail.com> <197990d4-b1e2-8db9-0cb7-87b860f23bd7@gmail.com> In-Reply-To: <197990d4-b1e2-8db9-0cb7-87b860f23bd7@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=yibin.gong@nxp.com; x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ccc0ccef-be6d-49d4-ffd8-08d6b8075b24 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:VI1PR04MB4976; x-ms-traffictypediagnostic: VI1PR04MB4976: x-microsoft-antispam-prvs: x-forefront-prvs: 0996D1900D x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(396003)(346002)(39860400002)(136003)(376002)(189003)(199004)(13464003)(45904002)(3846002)(7696005)(5024004)(74316002)(33656002)(86362001)(52536014)(6916009)(26005)(7736002)(54906003)(256004)(106356001)(71190400001)(71200400001)(446003)(9686003)(4326008)(8676002)(81156014)(478600001)(55016002)(68736007)(8936002)(6246003)(186003)(81166006)(25786009)(97736004)(105586002)(486006)(7416002)(53936002)(76176011)(476003)(229853002)(53546011)(14454004)(6506007)(102836004)(6436002)(11346002)(99286004)(66066001)(93886005)(6116002)(1411001)(2906002)(316002)(305945005)(5660300002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB4976;H:VI1PR04MB4543.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: /86/yjswOqyx8vYcK1wCxxOPX7/lJvaqI06GQMlIRH0iKewEipPJt0qTrQ9a5tmCeSfkEd0FGBPXakbQKg/T89VlK3Ix5JG1dybcmDMfEsUC4uMuuhHy5syALwxr7Haeg9qwgjoC+XEfGNoNBShzATpNjKmirEKbB3sEQ4RdUafl4TK9yLjK/bbsMabn3ByA3AuhyEXQiKyz2usqgdmwIH1AXOTwMG4q/VgxXHJKTqrVdJfw91njgROy3c7FfbXD1Ll8VReHs4k+njgiuAP0azZ7Zc4BwXzMC0Z/C+EacldNP6kL0rFGjlcYzFWzwjCP942Asealg9YcL3EEI4CpqvtsIjitTHR4uH5O/MdHGhjXYi2jjVRfIT+9CWzXlO74qC/XaihHHgeiND1Yrxem/2XvM9PwEC3+Sma0E+FP4FU= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ccc0ccef-be6d-49d4-ffd8-08d6b8075b24 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Apr 2019 07:38:25.1736 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4976 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBJZ29yIFBseWF0b3YgPHBseWF0 b3ZAZ21haWwuY29tPg0KPiBTZW50OiAyMDE55bm0NOaciDLml6UgMjA6MTUNCj4gVG86IFJvYmlu IEdvbmcgPHlpYmluLmdvbmdAbnhwLmNvbT4NCj4gQ2M6IFV3ZSBLbGVpbmUtS8O2bmlnIDx1Lmts ZWluZS1rb2VuaWdAcGVuZ3V0cm9uaXguZGU+Ow0KPiBsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwu b3JnOyBsaW51eC1hcm0ta2VybmVsQGxpc3RzLmluZnJhZGVhZC5vcmc7DQo+IGxpbnV4LXNwaUB2 Z2VyLmtlcm5lbC5vcmc7IGRsLWxpbnV4LWlteCA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