Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp738517ybz; Fri, 1 May 2020 07:41:24 -0700 (PDT) X-Google-Smtp-Source: APiQypKznHZcE8iwJCcAVtSgsCWNrcySYbZidKDFFrLciy9cualdO4nTVyNODw8DBxt7Ik/XyLi1 X-Received: by 2002:a17:906:11c9:: with SMTP id o9mr3613092eja.64.1588344084040; Fri, 01 May 2020 07:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588344084; cv=none; d=google.com; s=arc-20160816; b=iSv7Ch6IU0/BIzycLzywqkjqbMh+HvfM7SHzSdJE2JUkFGKYT9Erx8ZIIkvrhs3HVq w6SIwsdxahKS9u8I32P/valTb5t2sV49y0v2nTCIInl7aS1VpdflKI4oVMAP4sdFLYz/ 92VA7n61g0ZwAvaA3JXsuDWG1hQ6styTfpygEYJN6/aWfcTSc1zBSQHeMyNXi+KakYgd elwgujyiiiQrVM7fo8cu0MWa296LxmDzUDOMhRxcdU1mAZTKWTxy5ptZeZZwn0QTgnig RPONy80bXLUc+gK7FmGoGJj4YtjN9FKM0BH6U/7fe6RBnBxVPyqXiP1CK50B4ZoFsm6t C8kA== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=8VIPLSkqrglgjQeSr66OR8BmnSuUsZPHpl18x7zMDIc=; b=W810OSGyYRp1dgAssSzt+4tsaHElpQLoULjaGYVA/sdir4txkwU3PnAEE/NKNZDsk8 TGlPMUreK33W7A44HUlVKuqMmXJCEvULtFzykWprNuNMJcfWIoi3qhBC55ap30WWrM0w qFCNGCOOjU/vJdxz22J8HTQZu3/HKPtVaDV3gcRwBhPFkFQ0c6Jp/BP6pI7v09n1Lmk8 BEIqcIINB1B0pxrBMrR7RYj1IuZ/SY/wkAnro7pyVFT9vMpj1nB+wsGYVj9ZG+n6JlvQ denDh3JNXedF86hEIRgmqcARR++Ddt1c+aomzGqmRKcIoNRdRBK6DtsKXWH3VFG2JmUK VeUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="IZU8/YvO"; 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 l12si1750501edn.565.2020.05.01.07.41.00; Fri, 01 May 2020 07:41:24 -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=pass header.i=@mediatek.com header.s=dk header.b="IZU8/YvO"; 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 S1729138AbgEAOin (ORCPT + 99 others); Fri, 1 May 2020 10:38:43 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:2235 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728898AbgEAOin (ORCPT ); Fri, 1 May 2020 10:38:43 -0400 X-UUID: d1914d0961214355a183b758f3134b1d-20200501 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=8VIPLSkqrglgjQeSr66OR8BmnSuUsZPHpl18x7zMDIc=; b=IZU8/YvOIE9a4e01gZpZ8v+vYpYTDojkZ9miupSb6dyc+8Ax0NLRdOw6khuHppd98ALoToetflJkAEaB5Udib70P5K5bpcRfw4ETIPYEb9L5HqD1xsQIumRgA/LO664kg+PYFlB0A2eJ08UVTN2ALYBBJLDRx8T0I8ebm6uJHnE=; X-UUID: d1914d0961214355a183b758f3134b1d-20200501 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 918446; Fri, 01 May 2020 22:38:38 +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; Fri, 1 May 2020 22:38:34 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 1 May 2020 22:38:34 +0800 From: Stanley Chu To: , , , , , CC: , , , , , , , , , , , Stanley Chu Subject: [PATCH v3 5/5] scsi: ufs: cleanup WriteBooster feature Date: Fri, 1 May 2020 22:38:35 +0800 Message-ID: <20200501143835.26032-6-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200501143835.26032-1-stanley.chu@mediatek.com> References: <20200501143835.26032-1-stanley.chu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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 U21hbGwgY2xlYW51cCBhcyBiZWxvdyBpdGVtcywNCg0KMS4gVXNlIHVmc2hjZF9pc193Yl9hbGxv d2VkKCkgZGlyZWN0bHkgaW5zdGVhZCBvZiB1ZnNoY2Rfd2Jfc3VwKCkNCiAgIHNpbmNlIHVmc2hj ZF93Yl9zdXAoKSBqdXN0IHJldHVybnMgdGhlIHJlc3VsdCBvZg0KICAgdWZzaGNkX2lzX3diX2Fs bG93ZWQoKS4NCg0KMi4gSW4gd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