Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2504816ybg; Fri, 31 Jul 2020 01:25:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyU8v722mQ7nAvShxC5hy+xjHUA6FhTkL5Xq8KYD7DKEYfGTAJb7t9/jgqwDqvGARqN+MnO X-Received: by 2002:a17:906:938f:: with SMTP id l15mr3014266ejx.539.1596183915879; Fri, 31 Jul 2020 01:25:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596183915; cv=none; d=google.com; s=arc-20160816; b=wEpFjbWOZRWxg1yeJ7EQgBh56052OCG0YHuOc9Rrs+w8PwIeH8/ebkQpupKF0j6TWd gz2HhGaGL6vyNBZSQY78zMlPFRynC99aTKJqGAPX9sl1yizjiU+vTCH8lFKJscBtrVh1 e1634ePTJkn0R8z36yKualdTXCP69FGniCnfMNW5HR2qWsOOC0V/Nk4GMlYQwnQ2p5Dw sfzOv/WdgMqeNBy+yd3JAbjlV3Ct3W9EVV13V3EL/V0ZP8PmPhRCfap5yODP9WXJ3xj3 SWzxYhTD3eB8NWQm1cZiYVmZNndVUVwW4RhtyXEEpHXI9u7HX5W+W3adTsvydc6RY2gb tN8A== 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=qXyEm7h1EU9iqmjDOw4TDt54TkGuM6Zg2jr9jG/xIl8=; b=yKTxO4Glkr1xFS2kfEDHkwghAooMAA3tmDdasQ0KxemxIxRd5zyok9WTgC+xj/Jum+ 9/uWtDocZiTvY+ZKh096M0KTL5ogTj/v2lFYZWlmpx5gZsNj+z1poKQh+PYxRu0aSSOa 2w+Z8S+bxsDpu2iguOxM3tk2DAkEpgB0dLyWLwwr8byBFUBW0fmmPPmezTrsk7IbvkQN NbnqDjlwbn7n9iTJw+aPgKorxMfPT2Y5jXzTL5tzN/uXKp3hctflU1Fqy/CavjuLdhlr MWBEyLdCgPyhTcAAsg+dKsESeu5v1FICJpddxnYqJyO78F+rxxIMNpNbGnuZGW2Nf4T/ 3uDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mediatek.com header.s=dk header.b=oASkbbkB; 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=fail (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 e23si5113791ejl.751.2020.07.31.01.24.53; Fri, 31 Jul 2020 01:25:15 -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=fail header.i=@mediatek.com header.s=dk header.b=oASkbbkB; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731802AbgGaIXB (ORCPT + 99 others); Fri, 31 Jul 2020 04:23:01 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:13999 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1731510AbgGaIXB (ORCPT ); Fri, 31 Jul 2020 04:23:01 -0400 X-UUID: 501b8e16a0594eea9ff8bd30a25d9399-20200731 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=qXyEm7h1EU9iqmjDOw4TDt54TkGuM6Zg2jr9jG/xIl8=; b=oASkbbkBMM2oGYvNqAS/mRDILnsgdcgdLnbmuIB/4QQgGf11ZIyf50yO9EcPpOX/9LQpfwH5gK6JJe+IAo5D/f4FEXkCLZpa8sljfUG6/pdNIzc52nF4mF/SJtb7VWbuUysVia6GimD8oH9k2M0j19y9FjM0CvH/DK8IY9FbGKY=; X-UUID: 501b8e16a0594eea9ff8bd30a25d9399-20200731 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 784232708; Fri, 31 Jul 2020 16:22:55 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 31 Jul 2020 16:22:51 +0800 Received: from [172.21.77.33] (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 31 Jul 2020 16:22:52 +0800 Message-ID: <1596183773.17247.60.camel@mtkswgap22> Subject: Re: [PATCH v4] scsi: ufs: Quiesce all scsi devices before shutdown From: Stanley Chu To: Can Guo CC: "linux-scsi@vger.kernel.org" , "martin.petersen@oracle.com" , "avri.altman@wdc.com" , "alim.akhtar@samsung.com" , "jejb@linux.ibm.com" , "bvanassche@acm.org" , "beanhuo@micron.com" , "asutoshd@codeaurora.org" , "matthias.bgg@gmail.com" , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Kuohong Wang =?UTF-8?Q?=28=E7=8E=8B=E5=9C=8B=E9=B4=BB=29?= , Peter Wang =?UTF-8?Q?=28=E7=8E=8B=E4=BF=A1=E5=8F=8B=29?= , Chun-Hung Wu =?UTF-8?Q?=28=E5=B7=AB=E9=A7=BF=E5=AE=8F=29?= , "Andy Teng ( =?ISO-8859-1?Q?=1B$B{}G!9(=1B(B?=)" , Chaotian Jing =?UTF-8?Q?=28=E4=BA=95=E6=9C=9D=E5=A4=A9=29?= , CC Chou =?UTF-8?Q?=28=E5=91=A8=E5=BF=97=E6=9D=B0=29?= Date: Fri, 31 Jul 2020 16:22:53 +0800 In-Reply-To: <84510fc12ada0de8284e6a689b7a2358@codeaurora.org> References: <20200724140140.18186-1-stanley.chu@mediatek.com> <84510fc12ada0de8284e6a689b7a2358@codeaurora.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: A79C3ADDAB7B9C127D5D88B4633D40D8D96A1FC4951186C47B06E8EDFCB1D9292000: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 SGkgQ2FuLA0KDQpPbiBNb24sIDIwMjAtMDctMjcgYXQgMTU6MzAgKzA4MDAsIENhbiBHdW8gd3Jv dGU6DQo+IEhpIFN0YW5sZXksDQo+IA0KPiBPbiAyMDIwLTA3LTI0IDIyOjAxLCBTdGFubGV5IENo dSB3cm90ZToNCj4gPiBDdXJyZW50bHkgSS9PIHJlcXVlc3QgY291bGQgYmUgc3RpbGwgc3VibWl0 dGVkIHRvIFVGUyBkZXZpY2Ugd2hpbGUNCj4gPiBVRlMgaXMgd29ya2luZyBvbiBzaHV0ZG93biBm bG93LiBUaGlzIG1heSBsZWFkIHRvIHJhY2luZyBhcyBiZWxvdw0KPiA+IHNjZW5hcmlvcyBhbmQg ZmluYWxseSBzeXN0ZW0gbWF5IGNyYXNoIGR1ZSB0byB1bmNsb2NrZWQgcmVnaXN0ZXINCj4gPiBh Y2Nlc3Nlcy4NCj4gPiANCj4gPiBUbyBmaXggdGhpcyBraW5kIG9mIGlzc3Vlcywgc3BlY2lmaWNh bGx5IHF1aWVzY2UgYWxsIFNDU0kgZGV2aWNlcw0KPiA+IGJlZm9yZSBVRlMgc2h1dGRvd24gdG8g YmxvY2sgYWxsIEkvTyByZXF1ZXN0IHNlbm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