Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2155014pxu; Sun, 6 Dec 2020 21:40:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGqMYf1/Cbi6AYpdTuF01YJqAf9slKUiNlieU4xAfMZUUYOgmCClHhw5Bz57vAM4D2zE0I X-Received: by 2002:a17:906:3ad5:: with SMTP id z21mr17135957ejd.35.1607319599847; Sun, 06 Dec 2020 21:39:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607319599; cv=none; d=google.com; s=arc-20160816; b=n7JwGNBp5+9PjbHGZEbrJMoxtoK8AXeQmykouLJPx5le87nGRysGRLphyXTKuiQIiv XuXDLYE06V0TY+cFxgTKjxfEeyAyduudQTebw01Lkd4GcSI3rqk+OwJG5qkRinpdUreU NQ3XfY2CcQSJAdthw/MhAvjhP8Ol8jCE6VJd1Y8q66Kwyxo7MlBpLleeCMZPP2c2dvZ1 29j/M9ZR328F4i54wQFYV6EHgFCo/nsr0QrmGCqHtrJkzb9z9T1borscLXyfAYxa3UWC 8eAHeLvVokgx/cGGS6rAIe54m/mMpyeZll+c+4szesroi9pBX6ksJbAefTu9nzJw8C61 hMIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=7cgxbLM7dkXY5Hb3GfuhmSgn4dXbKCZjp0SRyz1WbnU=; b=tzoux9PeUTutAmRhsrW29G/yG6ivR88TCmWnh8oJLguU3O0/IzN9Y95I135E+4eFOw kuA9J6wuNcFSL7NeMcA+rydsFnncGPOsfDjnU7vieT83t3TprwinGM5ZpO/5w+43d61H QyI6IaXgldzIrJPEFQ8kbYMt/Jvwy8GEkyKrBUW8bN2qXvS7Q7FP3rGv+HYzeNxXTU3J WvM6ft/UWUOAcufYoMLGLTJBjuQzkVEajOiqrG0ufwiIXRVdfcka/C/2zQNujI/u3A7L 6+RzOEp7zBU9AM2IO0NRREfOmcMoKblwiLg8nyQEijTGKC8Pg6YDE8ScqzARF2QwrSP4 E6zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=P3zjUA6A; 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 dr10si6351201ejc.306.2020.12.06.21.39.37; Sun, 06 Dec 2020 21:39:59 -0800 (PST) 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=P3zjUA6A; 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 S1726384AbgLGFhC (ORCPT + 99 others); Mon, 7 Dec 2020 00:37:02 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:48384 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725681AbgLGFhC (ORCPT ); Mon, 7 Dec 2020 00:37:02 -0500 X-UUID: 9de2484883f04f76b3c9e1c241e729b6-20201207 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=7cgxbLM7dkXY5Hb3GfuhmSgn4dXbKCZjp0SRyz1WbnU=; b=P3zjUA6ANrhzeAgIgi9QLx1HzpHLQuFfJxX0nSVxYZIXKZHjs47YXe42MlFi9ePzRzssAHTDy56GdW76y9aHnBsUMV6QZQDQWXEGDweyI8PEbbnN/yD/maqyrTKNHXgcYq0m216TrCLjFoU+jRyLAoyaHVViqcR9g8/EmywoBrY=; X-UUID: 9de2484883f04f76b3c9e1c241e729b6-20201207 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1079014085; Mon, 07 Dec 2020 13:36:12 +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; Mon, 7 Dec 2020 13:36:09 +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; Mon, 7 Dec 2020 13:36:08 +0800 Message-ID: <1607319370.3580.8.camel@mtkswgap22> Subject: Re: [PATCH v2 2/3] scsi: ufs: Keep device active mode only fWriteBoosterBufferFlushDuringHibernate == 1 From: Stanley Chu To: Bean Huo CC: , , , , , , , , , , Date: Mon, 7 Dec 2020 13:36:10 +0800 In-Reply-To: <20201206101335.3418-3-huobean@gmail.com> References: <20201206101335.3418-1-huobean@gmail.com> <20201206101335.3418-3-huobean@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: FAE8D878E4678B6A4481F99C92F7AE150ED676839090D1D9D5B2008999A4DE9C2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gU3VuLCAyMDIwLTEyLTA2IGF0IDExOjEzICswMTAwLCBCZWFuIEh1byB3cm90ZToNCj4gRnJv bTogQmVhbiBIdW8gPGJlYW5odW9AbWljcm9uLmN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