Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp379954ybm; Fri, 29 May 2020 02:27:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyy5WvA2EaFx5abyg0asdtfvOU7Yp64uECDVkK+qWRKJ5v4/fI5Mmt59Wj513fsWjksL7MM X-Received: by 2002:a05:6402:4c6:: with SMTP id n6mr7067212edw.264.1590744426964; Fri, 29 May 2020 02:27:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590744426; cv=none; d=google.com; s=arc-20160816; b=sQJcpvC17sk4CPxNfNJIT7hNY+UCEjEMDQzMTj/DCU95zf7MC05A8TYWHT08iPwsNC 9mdrBMRh+d94hLSSOnLu0n0AnkjTJULMJbvL13bh7ZlMDpVSgZRQblKLuJ70qxUoHjZe am8y2DZgLsMxBuKFC5kTb3WblNa969AO+TpBrOy0PphK4MU41R0SpUjoBhCSDsEelBq/ 85ExWVaTu2LMztVYkL5eo+aS0LbMaRFCL/1uDZdPBy1+HskrA3IS7+pWhcQFQgLFXXzF K3h8/KUk356KeBNymJz7xpBS/+bYPWPQHMYFaYGKyxUD60e77FWqznlhUj0SpLrkirbB bdvA== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=uzfw9R1d1VOhip5QwrPTSrk84wKyVcP93tK5NZw6nGU=; b=rMP1h1964NXzNQjJvxLK+SFyIOaIbOqW7wQ1fmNhm7ORkbxem02oYX2EgvL+kmn0VU d/mNkn9kVuiJTND8hLbL6uyZpFo3lRUIr8to5JdjQa0gsXbGM561ynLfYAby2j4wcUu4 +SgKPHl/FpIvS8kek40TumNPWkY6xjcS/hpmamRx0DE3RRQdiEn1c+8z0yRrE0ygi6Qz hajyslft1ypztm1IbZ6rWzEmdXeBVJP422K4KMlCyM6rAvrK7kxW5dux5lcGNH9DtAov Nwr57tlmSfpWUNn0tXU8d/DyOuWAg3bHxzOeARDW1T3k/A6LwZBUTV6vAxTrvMmKy4fq rhBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=MUfbobrp; 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 q5si1214045edw.228.2020.05.29.02.26.43; Fri, 29 May 2020 02:27:06 -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=MUfbobrp; 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 S1726563AbgE2JXR (ORCPT + 99 others); Fri, 29 May 2020 05:23:17 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:9059 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725790AbgE2JXQ (ORCPT ); Fri, 29 May 2020 05:23:16 -0400 X-UUID: 93b4a5988c9f4d6e9b86390d1bb89a48-20200529 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=uzfw9R1d1VOhip5QwrPTSrk84wKyVcP93tK5NZw6nGU=; b=MUfbobrpT7qYztbauBkf6fKsVCXZlRGY2QrZL6JkU4vH+t61Tc6JheMHNpy+4T0z/1QvwltAaVP0Ji0R2wWtMmNLH+wdWyShDdlCIt7/T+517wQJi5xxCBm44vaCwNkLaoPJWcdlWUxKq/RIdZGZpkQilKqRc7JjW1TAw5Oruoo=; X-UUID: 93b4a5988c9f4d6e9b86390d1bb89a48-20200529 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 744379384; Fri, 29 May 2020 17:23:13 +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; Fri, 29 May 2020 17:23:10 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 29 May 2020 17:23:10 +0800 From: Stanley Chu To: , , , , CC: , , , , , , , , , , , , , , , Stanley Chu Subject: [PATCH v2 1/5] scsi: ufs-mediatek: Fix imprecise waiting time for ref-clk control Date: Fri, 29 May 2020 17:23:06 +0800 Message-ID: <20200529092310.1106-2-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200529092310.1106-1-stanley.chu@mediatek.com> References: <20200529092310.1106-1-stanley.chu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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 Q3VycmVudGx5IHJlZi1jbGsgY29udHJvbCB0aW1lb3V0IGlzIGltcGxlbWVudGVkIGJ5IEppZmZp ZXMuIEhvd2V2ZXINCmppZmZpZXMgaXMgbm90IGFjY3VyYXRlIGVub3VnaCB0aHVzICJmYWxzZSB0 aW1lb3V0IiBtYXkgaGFwcGVuLg0KDQpVc2UgbW9yZSBhY2N1cmF0ZSBkZWxheSBtZWNoYW5pc20g a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