Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2377036ybz; Sat, 2 May 2020 23:10:51 -0700 (PDT) X-Google-Smtp-Source: APiQypJlpmQJyZ2ZHAeMJLqXgHkRec0fEyHPX5xcHyyWfp91OnxnFXytqp3zyeZK/4yoF6lHDbDY X-Received: by 2002:aa7:d3d3:: with SMTP id o19mr9789305edr.76.1588486251324; Sat, 02 May 2020 23:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588486251; cv=none; d=google.com; s=arc-20160816; b=v+8GC4rrRNbOt8ui6by766cB81RKgX74BHFrBfkbdoGwqtu3N4H5gcOGV+sFdzNLvF LjQAkMELuF36rUSUYqhg8aVz1xoru2puCFRdswDFLi6uvgXkbIyShw4EVbksM+vD59w3 AGMakGbdEr6NC73qpteQ2+uXf5lEXB1JRVWxWz24e9v23w4YcapordCeofiqJHuI/e1o zVRhV6KSzDU1TjKSi9ngt6peiq1H/XwtuNKCcPH9VjfgEWBT8/by2WhEn2v4/kkTQl+3 j3xKr5ISq2k2m9RjNMgov0OONy4J/zbdhI60eQBwjz2MgsKx0mYfIxHibUGBGau2Zfe/ Im8Q== 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=ZBVUUZf+DNEs831r3e5mrVeWEH2R43z4hy3xuPB6tFA=; b=enZ0N+9M2qK0TN5m+bGw0IXiM/eCNIqmPFmQjhO8oOTDCGpQRlK5UfLukgEyTi1Fly 5cnA5QuIjSW6ANbYWST5UJWKrNrkxgIJQmeNzszD+gpqbWQz779/MmxZZv4Xa5f5mPN3 XLOeaIJsmT+KpaATQJuhHLQQREHW7rt7rNiHlW8QFeFcTPl3Pfh/hyEAUUxPhvZEpMX3 au8une9rnSuh/mgTSVoK6UMwhnInratNL5IEbY4QRKrxX+c9h3UAnfokfsvCZptQXhEE vAuEGwG+lH02N0TroEZHLWDatDeKWY76ZnzQGTK2eKGr/+I4yGvqEkxU+sHN9JkXljEp +Eig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=fVAJNCCP; 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 p12si4618418ejo.516.2020.05.02.23.10.28; Sat, 02 May 2020 23:10:51 -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=fVAJNCCP; 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 S1727774AbgECGEZ (ORCPT + 99 others); Sun, 3 May 2020 02:04:25 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:44123 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726948AbgECGEG (ORCPT ); Sun, 3 May 2020 02:04:06 -0400 X-UUID: 7e3c8d0f689f4180af31083e8278ac9f-20200503 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=ZBVUUZf+DNEs831r3e5mrVeWEH2R43z4hy3xuPB6tFA=; b=fVAJNCCPTe6EVtRWELQVllQ1WTxXsShiV1OxcwIo6nsPpa7wK1ytPY2X99kh1TIqZIIJs7TjKSWL/gz1uY+LoFn7XjAixVO39A14XdGdRIksH5Op7pJTtSJblv7leI1AAFVmNNgPmYgEydaWrQCUrwfRiUpzOqxSeUW3HMZGky8=; X-UUID: 7e3c8d0f689f4180af31083e8278ac9f-20200503 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1048901333; Sun, 03 May 2020 14:03:57 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 3 May 2020 14:03:56 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 3 May 2020 14:03:55 +0800 From: Stanley Chu To: , , , , , CC: , , , , , , , , , , , Stanley Chu Subject: [PATCH v4 8/8] scsi: ufs: cleanup WriteBooster feature Date: Sun, 3 May 2020 14:03:51 +0800 Message-ID: <20200503060351.10572-9-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200503060351.10572-1-stanley.chu@mediatek.com> References: <20200503060351.10572-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 bG93ZWQoKS4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