Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3212086pxu; Tue, 15 Dec 2020 01:10:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWJPxMD/bmuJv8mhI2oncDcYLYG5dRmtGlgKNFwMPZnkpOgmGkzkc+LnyLSIcJ8rTSyMbC X-Received: by 2002:a05:6402:1696:: with SMTP id a22mr28995982edv.385.1608023443155; Tue, 15 Dec 2020 01:10:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608023443; cv=none; d=google.com; s=arc-20160816; b=mHVrsvCkTh9kduREDwAZWWtHMQXmS1sYF+tqx0PPzkg2D+ELRPNns87Ne+2mGWSzbx Ohs6muNjw2vW2Je2NuMYECKB20Fs+0yib+xSiecOEWAbuuWHf7F4A/PHHyvdUabWyaAf qW7hOLex9qHyl1+YaxmYiEfItEozrQfX5894DviWZZcmxM9DEcokbpaFKKzesWsjsKmR JGTIOxqaPd5ENIrQVl80btnoh9Yz8T9IHXUolFNolITr+d/TO6VgXRjpnrDhS/bZy4gh v90bO+wGAvpKyBUz2yd6PbKfcnKAxpZR+gwYQYCr61gAMehFOIGgbAuUk5W5VumNIW4m UdsQ== 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=6+6qWJDCVaZdwd7LAQOA4ZmsvGIVsQDay04mR778FEQ=; b=F3rdWw6VFB5QNeBPi2mQY4cagiCofMoSj09x3N+AFaJRk6sGyOcifQEk38e/B/Ruek vsQ6OZlSjZMzyIbF9647p7/wQAEyo9tJMb2iN14KKWLfRmdxHB2reCCYTUDWPh7bz2rn XBlC8WU+3ZutHuVJYwqSLXqthH8TqteynBtSBw5uIo2g8XKBiMJe6QMiZ40e3BjScMLx JLtFUHoLgGC2VMw9fgwHHP9rzi/4TX663XjXvScy9nLUbG30gLS/RKArWUJRZ6FkJ+sp mWQrD5yzxO3IQK17MaE18mIoTxIk4kHDfUVnPX5jLbXDdgehros8twaHQc8/SLR/RPBN Wv1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=KjkxxdVj; 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 d23si560347ejd.151.2020.12.15.01.10.20; Tue, 15 Dec 2020 01:10:43 -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=KjkxxdVj; 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 S1728109AbgLOJIV (ORCPT + 99 others); Tue, 15 Dec 2020 04:08:21 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:39400 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728025AbgLOJIA (ORCPT ); Tue, 15 Dec 2020 04:08:00 -0500 X-UUID: 3aab9b74a18b41ca9c509e553360c48a-20201215 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=6+6qWJDCVaZdwd7LAQOA4ZmsvGIVsQDay04mR778FEQ=; b=KjkxxdVjwhYTX1g+1KYyZlJq6dSHYg0wT851Ln9QMZqUcj+CbZSA6jEuU60AsM8UHWqwcCNgvbORQtjMFR619wuFp5rduGbKwE9RahuIsg7AIgoGZWBOONxUVsN7fHB5qGFBpJMuzKcEnqiDTsFhn4uiv4g5w3WdVRQUz4hDCWk=; X-UUID: 3aab9b74a18b41ca9c509e553360c48a-20201215 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 1538017907; Tue, 15 Dec 2020 17:07:16 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 15 Dec 2020 17:07:15 +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; Tue, 15 Dec 2020 17:07:15 +0800 Message-ID: <1608023234.10163.19.camel@mtkswgap22> Subject: Re: [PATCH v4 5/6] scsi: ufs: Cleanup WB buffer flush toggle implementation From: Stanley Chu To: Bean Huo CC: , , , , , , , , , , Date: Tue, 15 Dec 2020 17:07:14 +0800 In-Reply-To: <20201211140035.20016-6-huobean@gmail.com> References: <20201211140035.20016-1-huobean@gmail.com> <20201211140035.20016-6-huobean@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 SGkgQmVhbiwNCg0KT24gRnJpLCAyMDIwLTEyLTExIGF0IDE1OjAwICswMTAwLCBCZWFuIEh1byB3 cm90ZToNCj4gRnJvbTogQmVhbiBIdW8gPGJlYW5odW9AbWljcm9uLmNvbT4NCj4gDQo+IERlbGV0 ZSB1ZnNoY2Rfd2JfYnVmX2ZsdXNoX2VuYWJsZSgpIGFuZ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