Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1230416imj; Thu, 14 Feb 2019 03:20:31 -0800 (PST) X-Google-Smtp-Source: AHgI3IaOB+8j+6+Tw67imBs2ya3dSt/jr+THwiSuMb2+B3BcthOiiAViweEmsU2W0YmLwjfbk6C9 X-Received: by 2002:a63:eb0c:: with SMTP id t12mr3167170pgh.105.1550143231330; Thu, 14 Feb 2019 03:20:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550143231; cv=none; d=google.com; s=arc-20160816; b=ECMnx0xSrhtB51j5Sv3E14TIqD9CVtt11tjbBsr38DU/qEWT4TAkzL/UzLWuXkQGbB LA/EpFfnlJJwiXmj9As6BkFj1y/CmlX8RUQSuqiqreLEL2w56xejMIOoYPhjsbqUyMcZ /abfllGgR0mjSuy0drp2g3Tm2b/eUeGmurC9oW25HeriE/7V4sq6g5KAKYTMMNZEQWop XWxTFV/+xRSFHHK2wk9TU8B94dcvZRfUWLcvwlWSdp1rKehMGUBJw1JwP6WtchXMyRVR ZXF/eq/s2kdXj/ZKN7hnRaqV/KousIbDwIKoFS93SoWhlMD2eZBeqeJ46OzMOAuW3Ut7 ax4Q== 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; bh=zYah33ykygscNMHWu97C4vh2IzDMFwrFjPurys8C0I4=; b=PvH5hwujtQ7vx8E8SHy/xTwRitOKEM99quHRAoU3a3UBeYWoSTKUYLLJ5DsL9hdzK2 rN+PdmD90wv/kdGq7J7qRXKzndtwJXXJPtckyX1zIyciO2M3GNpfL956PHBRIZU8SUYn 22b1iy6lPY9hhXdpKW3gl6ief8QG1GGVSQbbPrhnmhWLLfZ1CERt0rG+bu6v7p8D/i+Z fUNw93FrFHd5v0jtKps1MzCK1qiR4kZaucYnx5lZtMcTADOFcd76Xuez8C7hUIHkpSR/ SpvHsB9kynXArG2H6l+kTHQHaeXYU6y+49FegaeDYqOxku7dO339QTmC4G6cmzPKa1Fg 7rxg== ARC-Authentication-Results: i=1; mx.google.com; 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 b8si2046486pgw.561.2019.02.14.03.20.15; Thu, 14 Feb 2019 03:20:31 -0800 (PST) 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; 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 S2405776AbfBNGh3 (ORCPT + 99 others); Thu, 14 Feb 2019 01:37:29 -0500 Received: from szxga01-in.huawei.com ([45.249.212.187]:2451 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2405731AbfBNGh2 (ORCPT ); Thu, 14 Feb 2019 01:37:28 -0500 Received: from DGGEMM406-HUB.china.huawei.com (unknown [172.30.72.57]) by Forcepoint Email with ESMTP id 8A3C98E63F19A08631FF; Thu, 14 Feb 2019 14:37:26 +0800 (CST) Received: from DGGEMM526-MBX.china.huawei.com ([169.254.8.222]) by DGGEMM406-HUB.china.huawei.com ([10.3.20.214]) with mapi id 14.03.0415.000; Thu, 14 Feb 2019 14:37:23 +0800 From: "liwei (CM)" To: Manivannan Sadhasivam , "vinholikatti@gmail.com" , "jejb@linux.vnet.ibm.com" , "martin.petersen@oracle.com" , "robh+dt@kernel.org" CC: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "john.stultz@linaro.org" , "amit.kucheria@linaro.org" , "guodong.xu@linaro.org" Subject: =?gb2312?B?tPC4tDogW1BBVENIIHYyIDMvM10gc2NzaTogdWZzOiBBZGQgSEkzNjcwIFNv?= =?gb2312?Q?C_UFS_driver_support?= Thread-Topic: [PATCH v2 3/3] scsi: ufs: Add HI3670 SoC UFS driver support Thread-Index: AQHUpMht1CmYXwUbw0+7E5YSz6BCSqXfFeSQ Date: Thu, 14 Feb 2019 06:37:22 +0000 Message-ID: <1699CE87DE933F49876AD744B5DC140F0672AA1E@dggemm526-mbx.china.huawei.com> References: <20190105072859.9134-1-manivannan.sadhasivam@linaro.org> <20190105072859.9134-4-manivannan.sadhasivam@linaro.org> In-Reply-To: <20190105072859.9134-4-manivannan.sadhasivam@linaro.org> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.189.155.72] Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RmluZSB0byBtZS4gVGhhbmtzIQ0KQWNrZWQtYnk6IFdlaSBMaSA8bGl3ZWkyMTNAaHVhd2VpLmNv bT4NCg0KLS0tLS3Tyrz+1K28/i0tLS0tDQq3orz+yMs6IE1hbml2YW5uYW4gU2FkaGFzaXZhbSBb bWFpbHRvOm1hbml2YW5uYW4uc2FkaGFzaXZhbUBsaW5hcm8ub3JnXSANCreiy83KsbzkOiAyMDE5 xOox1MI1yNUgMTU6MjkNCsrVvP7IyzogdmluaG9saWthdHRpQGdtYWlsLmNvbTsgamVqYkBsaW51 eC52bmV0LmlibS5jb207IG1hcnRpbi5wZXRlcnNlbkBvcmFjbGUuY29tOyBsaXdlaSAoQ00pOyBy b2JoK2R0QGtlcm5lbC5vcmcNCrOty806IGxpbnV4LXNjc2lAdmdlci5rZXJuZWwub3Jn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