Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2400217pxu; Mon, 7 Dec 2020 05:47:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbxJbNVpZJhVL1I6freat1XEpcmy2naHwL2VDcoN6FCst0hAe6OEUcWHBsHYItKL7YsNb2 X-Received: by 2002:a17:907:1009:: with SMTP id ox9mr5109737ejb.37.1607348878220; Mon, 07 Dec 2020 05:47:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607348878; cv=none; d=google.com; s=arc-20160816; b=HdQdv57lFD0TGrsHBsjWah1UnRf0CN5SJzJwhNWQFFh7p6md9q2R9HFvXvpTU8CykD CWNQUdLEGXUbX3OUK8ebsQ6JwdKPn0PwpNC0pE3luzXw9YDYOKBriZZkmJfrU0qwAKuJ pF2o4cFVGFfTOESTcXFHHjH2KuL/WgItGA8S84V0jsriqMY14/Dwk4IEdaig65p208MB tO973ABSoOoo3Zaju4xWq4df1Kt0aqy01jYcw4AeCBptCTark8fMGkIoTBmQiTvUQ6to 8rf2nREpfh6LOxt+Dgs4qkKb3DR4gk2pIqZU4krVW0KYkVyK8ayHumunSjh10fbGaS9c Vogw== 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=4Ii3UID8fse2i4ieiqVMLnoGaYyiqaOaZASNr1fmU3o=; b=JTEBRXypAPCEBxYh0TaXVLzUZwY+/LTYiR4jd6v0GaMMoDFk8GI/sCWHL9xvuVbb5y EkEZY6WCO0mJinKu/TdEjANf8szys7Mrm8hS2DAJrunsHPMHEOasGe/ZgwIulH+FJYbU L33AsiA/3xUtKTxAWNHk4y4jULq+QL/4PYhOAOg+WhHrMUg+SMZLo+otNU6xfdI0sE/t 6qXO8FPA/3JMrLTc+TdN2DeZCSnf6SSyJ/3zftsCxVe+T7QRZJwDPDMkg38twrN339SO W+kSIq9oy19kFeT2QotCG3mJZ2HXVGdfHhsVqs7RegT3vAJSlucSpr7NT/3JU/MohRmJ us/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=CuO11Iff; 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 cx12si9137163edb.194.2020.12.07.05.47.34; Mon, 07 Dec 2020 05:47:58 -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=CuO11Iff; 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 S1726472AbgLGNoc (ORCPT + 99 others); Mon, 7 Dec 2020 08:44:32 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:60535 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726187AbgLGNoc (ORCPT ); Mon, 7 Dec 2020 08:44:32 -0500 X-UUID: ff3f90193e6b4f1182c6b23973cee090-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=4Ii3UID8fse2i4ieiqVMLnoGaYyiqaOaZASNr1fmU3o=; b=CuO11Iff6rYrBhIN5hgz70qM7QtKLODbhYYcSUfzZZ4nk1nachc+L4g8e1riCv2kxxMSt15PFauTT+S2m7Ko0k1E5aiFLlNZSpjWtZjx3ubcvwnMtBxloYVO2flFrxiU8qqZ4KiVcM4yQVKTjxcFIdOLScZyWMz9qrLsq7Tx/DU=; X-UUID: ff3f90193e6b4f1182c6b23973cee090-20201207 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] 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 1611850613; Mon, 07 Dec 2020 21:43:44 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 7 Dec 2020 21:43:38 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 7 Dec 2020 21:43:38 +0800 Message-ID: <1607348620.3580.18.camel@mtkswgap22> Subject: Re: [PATCH] scsi: ufs: Enable WB flush during suspend only if WB is enabled From: Stanley Chu To: Bean Huo CC: , , , , , , , , , , , , , , , , , , , , Date: Mon, 7 Dec 2020 21:43:40 +0800 In-Reply-To: <062aa9e8f37c2e50032241ff8ddc1dcbc8051ba9.camel@gmail.com> References: <20201207055006.24471-1-stanley.chu@mediatek.com> <062aa9e8f37c2e50032241ff8ddc1dcbc8051ba9.camel@gmail.com> 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 SGkgQmVhbiwNCg0KT24gTW9uLCAyMDIwLTEyLTA3IGF0IDExOjU5ICswMTAwLCBCZWFuIEh1byB3 cm90ZToNCj4gT24gTW9uLCAyMDIwLTEyLTA3IGF0IDEzOjUwICswODAwLCBTdGFubGV5IENodSB3 cm90ZTo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