Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp484882ybh; Wed, 18 Mar 2020 03:42:24 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsjyI2FmHdUgVJBk9y5eKOV9rDIcB9CprdXstPnVSPiprqMEb/vzlZa2htThDB+atYlCVFj X-Received: by 2002:aca:bd0b:: with SMTP id n11mr2509675oif.90.1584528144072; Wed, 18 Mar 2020 03:42:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584528144; cv=none; d=google.com; s=arc-20160816; b=Aqtwq1viAf6JrRZuvfoR7WZeXMs7qX0qQO/dbOsxb+ThQ7jfFRW14IL2NlSdXqgjJs QFZX3W1D4lwKvwJ71Vm4sboiIq7bZ9wNyc9BNXCcsgPIuXGl6XjbVeldaTLRcahOkZHV Wop3k7yoHgTwe3Iq8dWVyY+F7okjKdUHWwVXOXFRfUs0alwBQE9QAuIqxy2CdPrz1NNJ WIqWNqdANYkWegPwLp0BI1ZdRLn8F2O6edBH4pL1t2yliNs6o/3sCM9OQ2R5+WJj5+aZ sh7GX22t3b5qpa55BEB7PkjunPwIQddofL/kisCnEyBfvZJyu9/DIpxtN8E8vRtRjHcD MPoQ== 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=SujIfavt6nl6SADi9CBMgGUh+AUKfIUyar7ayBhr5XY=; b=JupUBRLBNMfx+ELFR69gFRaRF5F/tZwk+rN6wdTmlIkuWK9arg+89kp0B++mAhH2sq 7VSs3oCSBTpYH2ZV5btCUsBnwdFYTTYEUr3uCrthxXVGHtoN1zWVaIyUrCkQpMiU7axI naXlzxaVhArdlnJ5QEgU5Rf4eWZFdigXVGTAwYYlZ2szoFOB8ziNgjNYbgzplTSSG8gc T93qC7tT9mX2VOO78/FQ/nVx+ZNqkTELU3V9Dof1CYsXNFzt3qqLCsNropVx+Wlhjt7l Y9v9D9cmDHgU9zXLFjOIVaJLyqCJ/OCmtTyqDnndbEX3Ko+m5bss/pH6R5QOxfePySN5 zmoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=hnwE2MXA; 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 h59si2869101oth.233.2020.03.18.03.42.12; Wed, 18 Mar 2020 03:42:24 -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=hnwE2MXA; 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 S1727817AbgCRKko (ORCPT + 99 others); Wed, 18 Mar 2020 06:40:44 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:42689 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727702AbgCRKk3 (ORCPT ); Wed, 18 Mar 2020 06:40:29 -0400 X-UUID: 902edc92533d4cdaa10ccfb312d2a90f-20200318 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=SujIfavt6nl6SADi9CBMgGUh+AUKfIUyar7ayBhr5XY=; b=hnwE2MXA4UEfCRWY13D2cI0XA8YR/yu3/Qrec5wkIN5G/3maN7eCirSbCIcnWppA2VXR1z0c1j5CbIWddRXHhrh1Ca2s5uqOskeka0izJ93QFtcVebH3l6qdDtWHwNyYY5+mqwRvD7uXhXvFsMSpXSdXblKsREMcgmb3gfRsuBc=; X-UUID: 902edc92533d4cdaa10ccfb312d2a90f-20200318 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1482939392; Wed, 18 Mar 2020 18:40:20 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 18 Mar 2020 18:39:00 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 18 Mar 2020 18:40:30 +0800 From: Stanley Chu To: , , , , , CC: , , , , , , , , , , , Stanley Chu Subject: [PATCH v7 3/7] scsi: ufs: introduce common and flexible delay function Date: Wed, 18 Mar 2020 18:40:12 +0800 Message-ID: <20200318104016.28049-4-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200318104016.28049-1-stanley.chu@mediatek.com> References: <20200318104016.28049-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 SW50cm9kdWNlIGEgY29tbW9uIGRlbGF5IGZ1bmN0aW9uIHRvIHByb3ZpZGUgZmxleGlibGUgd2F5 IGZvciB1c2Vycw0KdG8gdGFrZSBjaG9pY2VzIG9mIHVkZWxheSBhbmQgdXNsZWVwX3JhbmdlIGlu dG8gY29uc2lkZXJhdGlvbiBhY2NvcmRpbmcNCnRvIH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