Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp2043754ybm; Sun, 31 May 2020 06:50:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkbpr/Q8e67JWjHQuDywo4IJujEf50h5Kb218YQdx2yGQ2DWXtghf0v6QRfcUKgLz6n458 X-Received: by 2002:a50:9b0f:: with SMTP id o15mr17715004edi.325.1590933040305; Sun, 31 May 2020 06:50:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590933040; cv=none; d=google.com; s=arc-20160816; b=l5HSrxuYFl1Em8BaK/46L/A5FzQDTRmIav34qjjGJgMHkhwveV53UYZbkrSEg9mbod f4DsxxBex33K4Q8DDbqthoPX4l7zj0Lg+kL4XBacFz760+KkwKPHbjvsGevlO2ZdF9Ov LXX01cgoTjIYMV56aMfWd/kVMQj8GFbfDqwboRS60VVua4mROiYDnSIajgrzraF/aeVi xgF0M0o4hCB9gE+AIyVOkFqTRVd5crfhMjzv/gtY6sjQKaVDCALIbHnHwj6G9KLOdJus eBimjzVGOIPZBt0/oOBF0jVYYCsWo8oTCh0eXOfZZpKl4lyttZSfKXl52Z1Btcv3c1Fn f4Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=NUfLG++y2OF2sag9fIFGPyEX1N9v5Lg5oAIif4rz+nA=; b=krB5DzQm6gPvS2TjFWgyn3lawWzSjwVUh7rP7yvsY/1p+ecmF3WHu0Ygj3KjDSANug VcbrD4y2bxjQWlfwcz/R+/lEGLXbJoIS9P/haJwflo/k6cNtwNZZASFI07YUYq6b1IJH x/bNc8LZrPr/KwLocDJ5ARzDGsOXKD63OedKgv2NfePLJA+OTUlisAGyt8ZX4fioYHEp YhL3++NBtHrleAdxBmEY9syx6+Kj437cUuBCBJW+asVa0m81qkLhXtYZSQ2/8JPLjNRz noZHma9qS3hWJCrkIDk8MTjg6cLPHbHVNhnveynaWuno/lRcCqrXAt+/4B93qwfrqZUK BV7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=DeG67wRg; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si9463889ejk.379.2020.05.31.06.50.17; Sun, 31 May 2020 06:50:40 -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=@mediatek.com header.s=dk header.b=DeG67wRg; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728039AbgEaNpO (ORCPT + 99 others); Sun, 31 May 2020 09:45:14 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:10927 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725889AbgEaNpO (ORCPT ); Sun, 31 May 2020 09:45:14 -0400 X-UUID: ce8f87bc10e640a5a15414cd2f69966b-20200531 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=NUfLG++y2OF2sag9fIFGPyEX1N9v5Lg5oAIif4rz+nA=; b=DeG67wRgP5p9PUM6J6PIhKsottl98o9v3E5asT9gq7s8BAmaT1LwMHiik39BejvmqIzo8nDmNO0BivZTnP0tY8vOAxVXuPp25Swi7YEGpXtdyZNj3Tytdtg9vcDK4C/6cUChvdHtJZnLB9hckb4Sq08XLLeI1X7zWPysEg38xLY=; X-UUID: ce8f87bc10e640a5a15414cd2f69966b-20200531 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 115503061; Sun, 31 May 2020 21:45:07 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 31 May 2020 21:45:02 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 31 May 2020 21:45:02 +0800 Message-ID: <1590932706.25636.14.camel@mtkswgap22> Subject: RE: [PATCH v2 1/5] scsi: ufs-mediatek: Fix imprecise waiting time for ref-clk control From: Stanley Chu To: Avri Altman CC: "linux-scsi@vger.kernel.org" , "martin.petersen@oracle.com" , "alim.akhtar@samsung.com" , "jejb@linux.ibm.com" , "beanhuo@micron.com" , "asutoshd@codeaurora.org" , "cang@codeaurora.org" , "matthias.bgg@gmail.com" , "bvanassche@acm.org" , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "kuohong.wang@mediatek.com" , "peter.wang@mediatek.com" , "chun-hung.wu@mediatek.com" , "andy.teng@mediatek.com" , "cc.chou@mediatek.com" , "chaotian.jing@mediatek.com" , "pengshun.zhao@mediatek.com" Date: Sun, 31 May 2020 21:45:06 +0800 In-Reply-To: References: <20200529092310.1106-1-stanley.chu@mediatek.com> <20200529092310.1106-2-stanley.chu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQXZyaSwNCg0KT24gU3VuLCAyMDIwLTA1LTMxIGF0IDA3OjEwICswMDAwLCBBdnJpIEFsdG1h biB3cm90ZToNCj4gPiANCj4gPiBDdXJyZW50bHkgcmVmLWNsayBjb250cm9sIHRpbWVvdXQgaXMg aW1wbGVtZW50ZWQgYnkgSmlmZmllcy4gSG93ZXZlcg0KPiA+IGppZmZpZXMgaXMgbm90IGFjY3Vy YXRlIGVub3VnaCB0aHVzICJmYWxzZSB0aW1lb3V0IiBtYXkgaGFwcGVuLg0KPiA+IA0KPiA+IFVz ZSBtb3JlIGFjY3VyYXRlIGRlbGF5IG1lY2hhbmlzbSBpbnN0ZWFkLCBmb3IgZXhhbXBsZSwga3Rp bWUuDQo+ID4gDQo+ID4gU2lnbmVkLW9mZi1ieTogU3RhbmxleSBDaHUgPHN0YW5sZXkuY2h1QG1l ZGlhdGVrLmNvbT4NCj4gPiBSZXZpZXdlZC1ieTogQW5keSBUZW5nIDxhbmR5LnRlbmdAbWVkaWF0 ZWsuY29tPg0KPiBSZXZpZXdlZC1ieTogQXZyaSBBbHRtYW4gPGF2cmkuYWx0bWFuQHdkYy5jb20+ DQo+IA0KDQpUaGFua3MgZm9yIHlvdXIgcmV2aWV3Lg0KDQo+ID4gDQo+ID4gICAgICAgICAvKiBX YWl0IGZvciBhY2sgKi8NCj4gPiAtICAgICAgIHRpbWVvdXQgPSBqaWZmaWVzICsgbXNlY3NfdG9f amlmZmllcyhSRUZDTEtfUkVRX1RJTUVPVVRfTVMpOw0KPiA+ICsgICAgICAgdGltZW91dCA9IGt0 aW1lX2FkZF91cyhrdGltZV9nZXQoKSwgUkVGQ0xLX1JFUV9USU1FT1VUX1VTKTsNCj4gPiAgICAg ICAgIGRvIHsNCj4gPiArICAgICAgICAgICAgICAgdGltZV9jaGVja2VkID0ga3RpbWVfZ2V0KCk7 DQo+ID4gICA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