Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2469716pxu; Mon, 7 Dec 2020 07:25:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwS5s6dBBMNoXl8FLMOQlDLEXidlS7IeKCRdS8c1gSQTWF1feAdHAXeu2Lx6BMWfdZgmV6y X-Received: by 2002:a17:907:1607:: with SMTP id hb7mr3032735ejc.81.1607354700414; Mon, 07 Dec 2020 07:25:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607354700; cv=none; d=google.com; s=arc-20160816; b=qmGfr3JcIsh9kcWT064sZWVI1hB2LDMpWEzLp4HXYwIxAK9pFeHdcSrALlRRbOHyuq VbQ2n6T4ng4wAFB8MsaE+VKGjxeUfkbWCmbVnEOoyhYs/peiRl2Gnwtisyt5xj7doV8H /RcktbTS6w9aMAffdiYs/Tuf/pxULxfY4sQIx05Hln1AzUn9nZHmgDseAX0A2eETmAY+ 79+SbRQN+04lHt6rXuoswBPB4/16K5lQL//TUvqKGNUbVba2HJM699QLJh7++jbkhV+o i1VPDPTTOBO7ul/AwScEY+07TEE6O3t4irML1ovTQvYPApQCe4a9TAk9itQhtktFWs+K ORcA== 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=aoaUozPZYFeh+DdVsOxBemjKcHvZByKxlHNwVcy5zL8=; b=jrplNBth5UjGsPu4MRbK5luyiBl4nMZ61TKVhoCjyhZFl+Gl5zbpbztWWMzHDP+LXs PGTC5tDondVnrKEWXhjFRWoBnzvgC6lDUZ+mi+whIKQN1jYXYTfFFrjYcqyd+Ajak0Qq aEktyX7bbBOPuY4nz3gjvNjf0pQ1IE/kJ5TPtz/MHwq4RBRhpI8qLKi4QVrSPke9qVuq Q/nHwtL1dBN0tLSGyoD33fvfdt1haVC3j7gwmeNlEiDYKH/xXj8bRRumFJA+zEgioYg5 MILkNcaHKIXhuNgbiNRuE2E5mMzHwbPQdU0INruTQPJJzoP8ApKdpNuQzXqkQaB21MBg vZBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=k8I9G05C; 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 m2si6683653ejc.596.2020.12.07.07.24.35; Mon, 07 Dec 2020 07:25:00 -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=k8I9G05C; 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 S1726137AbgLGPUH (ORCPT + 99 others); Mon, 7 Dec 2020 10:20:07 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:53451 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725774AbgLGPUH (ORCPT ); Mon, 7 Dec 2020 10:20:07 -0500 X-UUID: 6394617866c64fdc98819fc37491bc20-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=aoaUozPZYFeh+DdVsOxBemjKcHvZByKxlHNwVcy5zL8=; b=k8I9G05Cq6urz2ZYORowNzNchs0ZYd8Nmnu+6c7NdAkH13yKfPk3H5w8F5c6E0NtOQThH7gaBUqQlha+h77oYGffXBqLjNf/UQFT/8Fa5stT9sMK4/0UFOxmeEa+TSKg/rDa1bXxRsvIyVBUQjAFzeXswJKzx+HKRV/OvRQH4Aw=; X-UUID: 6394617866c64fdc98819fc37491bc20-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 1320254551; Mon, 07 Dec 2020 23:19:23 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 7 Dec 2020 23:19:19 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 7 Dec 2020 23:19:19 +0800 Message-ID: <1607354362.3580.22.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 23:19:22 +0800 In-Reply-To: <1607319370.3580.8.camel@mtkswgap22> References: <20201206101335.3418-1-huobean@gmail.com> <20201206101335.3418-3-huobean@gmail.com> <1607319370.3580.8.camel@mtkswgap22> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDIwLTEyLTA3IGF0IDEzOjM2ICswODAwLCBTdGFubGV5IENodSB3cm90ZToNCj4g T24gU3VuLCAyMDIwLTEyLTA2IGF0IDExOjEzICswMTAwLCBCZWFuIEh1byB3cm90ZToNCj4gPiBG cm9tOiBCZWFuIEh1by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