Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1487107ybh; Fri, 13 Mar 2020 02:04:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtT+SckDG9SN8Qm84sQqhZx/u51Hf2GqaIbmrPtXtWemkYD30VixA71yHQsTj0Z6BdYczld X-Received: by 2002:a9d:228:: with SMTP id 37mr10403877otb.52.1584090248963; Fri, 13 Mar 2020 02:04:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584090248; cv=none; d=google.com; s=arc-20160816; b=0ooS0eniFW8cPbkNFqE2bUYp7NXRIA17GZTtxobaXgM4Y2wBUeHvdhqh9sLTQh9EW4 6RBP5Ot/95i3h69VjlCZx6utysDFQdfR5qJQB/ngu3e5fuCY/oGiLLNkg8ABFFiTCbm7 1Piw66I6AOYuw/FDb8TunBQ8WwYeC69RRfYZ7Iy7NfjkRLjvAx0ufePshB0y6GyyEAjl ncS8kAQDkgUM5VSQ+zbvZ+f/1OUUNGt26yemBCI3CrpQDRU8OIyKG/H6mvxe1eHR38Ej BTaQCjMu70gb4JAGNq5u8Wt9SwJ8k47AHsp13Eguz0KnUsx7j273LhgCRRURawZi59N5 wQ3A== 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=ssIHMZ3gzFIIN/d3N49O20oiYNm4fTdpyf9DffWHFP8=; b=ci5e0B6ZCX7X3GSNuByp3UWOCmWb+cgH1G94jaSqxJs/vyeDBNVpE8dIdQPTPqis/A bCXJTeyedMlY7lDW7xZkyzcdvi8yC/hHaplQ+8LkNpmBegV/3vI2bSJRnV58Tw6/UysN YIANwvPkIPnynMYDVxsEzWkUxRfgxP0brkD3cEFvTEEthBk4kOv8re3/BqyzGzALvrlb E6OjSBs7WeQ5N5lGYDBOaBWSJccJ/2/3EXO/ZjK3MBFdqWouYxXpz+QTkTxdUivyvkTJ TFHjEbEitMIePmaOlRHisTvHOIxQIEWsd1iJ1AnuogUUrqorom/77dEWxmGXxYDL1Aad p67w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=bTTvGVO8; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 73si3999861oii.60.2020.03.13.02.03.54; Fri, 13 Mar 2020 02:04:08 -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=@mediatek.com header.s=dk header.b=bTTvGVO8; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726533AbgCMJB2 (ORCPT + 99 others); Fri, 13 Mar 2020 05:01:28 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:47666 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726443AbgCMJB2 (ORCPT ); Fri, 13 Mar 2020 05:01:28 -0400 X-UUID: 6a579246794144fbbb662b9fd2ea0293-20200313 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=ssIHMZ3gzFIIN/d3N49O20oiYNm4fTdpyf9DffWHFP8=; b=bTTvGVO8jOoPp15z5PyGI0XNccVwYRNuw6UhKyd+OwLNe0O9GSqlyy1X2uBbGiLt2sT5apx3K+OOHO5Xcas+cdRRw/9jcmmBQ1bpoWa+zfVz4bL880vbZ23hOsPPGKtBi3Ke63GufAfM4yh2VMIx/1ThfShnUEddujOliM5CaAY=; X-UUID: 6a579246794144fbbb662b9fd2ea0293-20200313 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1841707786; Fri, 13 Mar 2020 17:01:23 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 13 Mar 2020 16:58:32 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 13 Mar 2020 17:00:33 +0800 From: Stanley Chu To: , , , , CC: , , , , , , , , , , , , Stanley Chu Subject: [PATCH v4 7/8] scsi: ufs: make HCE polling more compact to improve initializatoin latency Date: Fri, 13 Mar 2020 17:01:02 +0800 Message-ID: <20200313090103.15390-8-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200313090103.15390-1-stanley.chu@mediatek.com> References: <20200313090103.15390-1-stanley.chu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: AA80D58571BE8A70139EA473B24CC986E500B20EC6FE64C2CD784E1584C977B82000:8 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 UmVkdWNlIHRoZSB3YWl0aW5nIHBlcmlvZCBiZXR3ZWVuIGVhY2ggSENFIChIb3N0IENvbnRyb2xs ZXIgRW5hYmxlKQ0KcG9sbGluZyBmcm9tIDUgbXMgdG8gMSBtcy4gS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