Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1126521pxf; Thu, 18 Mar 2021 22:30:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEjxYVHvReKBwgaA/7iuub4jsczP7jefuZ9l8IAUXQ+tJVMsahnBmZTaP8UOdg5zRRB7jE X-Received: by 2002:a17:906:90d8:: with SMTP id v24mr2299579ejw.547.1616131807462; Thu, 18 Mar 2021 22:30:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616131807; cv=pass; d=google.com; s=arc-20160816; b=gcQw7CLDWj3+xMIuFpyabzbOldXhv62o863npAUPUab8HbElvJ4rK7MEojlhrF0BTt yJAF2y2/MN1hx7AZcQrgpXy+H3ghxlYKE4CayalFdKY1Zho0c5ah+qHvJUlsi3wx+IjR 0VVIvjhKGeobiNbSr6traYX+p2AvWMdF2NkdZqL4/G5RwtVquhOX+aOlPHJrh9Bb7iY+ ZJLgjPRF6VghbTefT//vbOTkJJ2VWzul8Np5oiZIqvEbnfWPA94qpgvnpiGehCpqbDWO esAB2UKtu9dwSFgKG7QNeikTDAS2d6nnHGyGPLh/9YUl0MFn85ixUBaOsCFDNEltgVkD Pmmw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence: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=p63mYSbG04dSv9e++Bl6gvqxsZcBiQf60qcoUpqsV+U=; b=NQmTHajsH80Cy7yTG6kQ8FR77C0v5ZkbjcL92utspJbF1XdDGYzoo6b/2EiGbE+Bj5 WW4sehAJcu3iaiMLkaxiaaHrI2Epv4bI6ZLFiBIEAHuqBVV9EmAzgjz6xkhs3wbDLByD /YW+yJgq/Mp6AB4gE+qPbnwyDvJS6PTRp+VscwROUhfi6Tyg4P15gItppHXhLJ3wZmsb qQl/eiB3J3WiIxtLDhQQFO+4L3yxR5d7hYFKPQ3/0Q1UMI6N46D5jyVwz9+ZMFYjI7dA /7gKeq8aPrYQzIKiba18T7R+TeJVMHOy1CVqxaDKc1rlfcrFwgjbzyVFJgwM1Z9bLZSi jcAw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=KMlOhmQC; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id e9si3230313ejt.385.2021.03.18.22.29.43; Thu, 18 Mar 2021 22:30:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=KMlOhmQC; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233762AbhCSF2r (ORCPT + 99 others); Fri, 19 Mar 2021 01:28:47 -0400 Received: from mail-vi1eur05on2067.outbound.protection.outlook.com ([40.107.21.67]:28033 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231787AbhCSF2W (ORCPT ); Fri, 19 Mar 2021 01:28:22 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kdgs7uvn661UZ+KyPVqLDA2dXC+dUoJs5O6IcTaq0L77VLBKO7CJJU8UFIM3WlrZ0ZZGWPT1XKgOYjHXUeU91gKyFQW2EcCDm/Nvd48C1Al5Foe1r1KVk7XOPrQiL1OaEHJsufhWTqfjkL75fA9jyjERmMMamfZ/ZNMXrQcukMgt0gNZvA35qThEW6JtGN4rg9C2jtwsamJ/9Icx0Hyrfl4YTid6kCL+U9ow5sUAl306D7CfYFaJiCBooMqpb64dkJy0gRNCzD0TUdRFOnJ2yVNFZ9Wm2hJGwiTUVbPgUSanpZbwoLX97mnjJhY7klA9NeOP2o01B3sTUi8Pm3Bsvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p63mYSbG04dSv9e++Bl6gvqxsZcBiQf60qcoUpqsV+U=; b=Q7Fjd2EfW+sVqVFNKno3rF14yL9QWUj2oAo9dDly4JIwQ5cX++gHhiKxgf6uEoaJErUF9MWGYXHnRT4LAh9TMvckRFzK6GQQxV6r6M8Eo/ZA51HD9qcTz+/a8XxycEOkOBK7fMlCo8h00qBsQf175QtEwO2eMmpPJfBv3zlFHmvcsYaYPyvt/sDa7oa/ulB9k9E3NSDI3fr3zyC8Q760FoErY6+xJmHoDrfmq8U7+XjbL1yFyZ922VzBP8tIFuCawxifUtDcPTz4onu7Ujwo7C1PzDpA0z/H3JloabumSVcJvhNpd+lo+O091Mo3V1BYaY5+ORo0Kh78W1o2CLTbYg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p63mYSbG04dSv9e++Bl6gvqxsZcBiQf60qcoUpqsV+U=; b=KMlOhmQCWksi2T7NsWtDzkWsueiO/jurI57nfi2hAW4T404XLX5+04QhqcrKHYaHCBfjRi6cai4pe5IWHUXAkJWlVIWhPw7xGRVEymfd8Av0EagueINtTixJoFihVno80U1ngW5EhInQWCvqsqp2VD1vbfFRP0jEEqI3jIQmY4c= Received: from AM6PR04MB4966.eurprd04.prod.outlook.com (2603:10a6:20b:2::14) by AM6PR04MB6759.eurprd04.prod.outlook.com (2603:10a6:20b:d8::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Fri, 19 Mar 2021 05:28:18 +0000 Received: from AM6PR04MB4966.eurprd04.prod.outlook.com ([fe80::ecad:ebb8:8eb0:d359]) by AM6PR04MB4966.eurprd04.prod.outlook.com ([fe80::ecad:ebb8:8eb0:d359%7]) with mapi id 15.20.3955.023; Fri, 19 Mar 2021 05:28:18 +0000 From: Aisheng Dong To: Clark Wang , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" CC: "kernel@pengutronix.de" , "festevam@gmail.com" , dl-linux-imx , "sumit.semwal@linaro.org" , "christian.koenig@amd.com" , "linux-i2c@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 11/11] i2c: imx-lpi2c: add edma mode support Thread-Topic: [PATCH 11/11] i2c: imx-lpi2c: add edma mode support Thread-Index: AQHXGvpgT0EQYcJSf0GQUbJjkNxcDqqKyC0w Date: Fri, 19 Mar 2021 05:28:18 +0000 Message-ID: References: <20210317065359.3109394-1-xiaoning.wang@nxp.com> <20210317065359.3109394-12-xiaoning.wang@nxp.com> In-Reply-To: <20210317065359.3109394-12-xiaoning.wang@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [119.31.174.67] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 9a57f72a-4acc-473e-e68c-08d8ea97cdbe x-ms-traffictypediagnostic: AM6PR04MB6759: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4714; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: UV9EcdIcPu1W1PtW5dAGy/F3553INURvAc9Cj0H1XiBumD9zX3v1WciFuRxwIU5Taqmy+MadsJftGozszQil8pb59o5YUd+U5PPOhJTPML5Stae4MHcCHK8D6VuM1MN/JDOOBHJ7uBPy1Cs4bzgecOcknuDV8hzajNGz19zb1PfC6dSNFY84GfTEm2L+dc/wERjnn4lv1dEsCzMcZgu4ZNoucVxaOfo7c+MZUCJvCYVtVpAqzdgAaebJ4lyquN2itrFqRS09Eyi1Ex6vVtcUZ3LbhdKi0cmkzeHpyUpHlcNpOtBaTYZ7KMuQ/TPsxXYQp/lxb6Goc95AX3/KHv/Wnv/rliklTBT6I9tS6vdxFcSqQCXrGsEiiet9dV+K3KVKTN99l9zGw120PPzm4xOaw0Hbb2HE7PmkXDelWrp9Hz3kgn6tPgJhruEnybLYtd9fdSBfoFyww5jbHivb8Ob9b6MzxFOmgvyN57NsGzDSReSvC0cgwG42chmzKvl4qF/NVypDyzew3NC0dtxw8tQ0h+2Ty4uiz8/M4GoVUnTUHIPmo3QV7fC1YkOoD+YHxf86gZcOQ0SXNytbZQ0gl7hVGGnxFpng0b4Qv8dx2uUJFmTOhoExcWPwImqjAhf6crg3cz8aX2s1Mc0IdY6v1VzgOnmE5Vvmueqol5+drUjT/5E= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4966.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(366004)(39860400002)(396003)(136003)(376002)(9686003)(316002)(55016002)(8936002)(44832011)(6506007)(38100700001)(71200400001)(83380400001)(4326008)(86362001)(8676002)(66946007)(478600001)(66476007)(54906003)(76116006)(186003)(26005)(64756008)(52536014)(110136005)(2906002)(66556008)(66446008)(5660300002)(7696005)(30864003)(33656002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?utf-8?B?RGViT2dyc0cwWHlBb0xsek5tK0NGK3h1ajU0YU9Yc0NKcUFhSTZrSWhHRUp0?= =?utf-8?B?RnR0Mk81UklhRFo4dEYzK3VET0twVkRYWGpEWXRURXU1Z3lETjA3clFHRHRY?= =?utf-8?B?RHNtZVJ5SGV6RVNNL29tTFNxMm5aS0k3aTB5MVdiQzI3cUluTTZEcEJiWFV6?= =?utf-8?B?UEtYSnozaEU2cDdUdjFZakpiUzhicFZIZlFyMHZyUXJmTkxuM3ZUYmN4MWx4?= =?utf-8?B?M2FjRUt2bzZOZ1ljdUNYSlBtY3gxQ3JSbVlkT1p0QnpQc004eEc0L3UvZk56?= =?utf-8?B?SXJWZU4wK2NSUnNyYVBiVkw5S2ttOVB1UEdOQ1RRS05qOXJUMmtIVmcrS2x1?= =?utf-8?B?YVRmcU82Y3FXODhwRnVYUW5jMmE1azNHMmc4d2VoOUNGN0U3RGVpTDNVMGlE?= =?utf-8?B?cVRmMVlKLzUwZWRHWUlSQitjTzBubkt6dFF3ZlpNQUEra0JKekhxclcvaGIr?= =?utf-8?B?QmpVQ0tHampTQ1dxZk9nbWlYOEFDU0kyeEYrd2FPRnFQalZLUU96KytFOVRu?= =?utf-8?B?bVBOcVFOQjh1ZzN4MWNHa3d4ejlEOGxtZ0Vib3QwMVlMaG92TTVGa281T3Ju?= =?utf-8?B?MW1WNWhQdmF0SHVRVFg0cnlVd1RjK2lMdjF1U3locTBtTGxIWWpKcUw5ZTF1?= =?utf-8?B?SlJ1M2RPSVRKSU5ZT0s5UWt4MVMxOHB5NHlMRWk0MUJjKzRpajh5UjNBVlVl?= =?utf-8?B?QnR1SE1udEdQUnhk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NGR0bVF6S0N1QVUveHJVZlJJK2dCWGVUV05wSVBsZThq?= =?utf-8?B?ejNaeXk0TUN5UXBoTm9zU0thTmhCZmxCbWRPSTBIOTEzR2phbGtqVXlWNHR3?= =?utf-8?Q?ugnIh5Hs8uZkYKMUh5EH4WuhtT/TlpdQ946AhBm?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4966.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9a57f72a-4acc-473e-e68c-08d8ea97cdbe X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2021 05:28:18.4718 (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-CrossTenant-userprincipalname: 4AbuLB0yba4WjQez6KFeIz6OurnKih7k8RKKWxaWsGaSMt7xBUwqkN2c76KbGQzOEPQIlVelkx3AFMGw7/A61w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6759 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBGcm9tOiBDbGFyayBXYW5nIDx4aWFvbmluZy53YW5nQG54cC5jb20+DQo+IFNlbnQ6IFdlZG5l c2RheSwgTWFyY2ggMTcsIDIwMjEgMjo1NCBQTQ0KPiANCj4gQWRkIGVETUEgcmVjZWl2ZSBhbmQg c2VuZCBtb2RlIHN1cHBvcnQuDQo+IFN1cHBvcnQgdG8gcmVhZCBhbmQgd3JpdGUgZGF0YSBsYXJn ZXIgdGhhbiAyNTYgYnl0ZXMgaW4gb25lIGZyYW1lLg0KPiANCj4gU2lnbmVkLW9mZi1ieTogQ2xh cmsgV2FuZyA8eGlhb25pbmcud2FuZ0BueHA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