Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp645491ybz; Wed, 29 Apr 2020 06:58:16 -0700 (PDT) X-Google-Smtp-Source: APiQypLO5kB+RYBKBZ+ERJuJMfjaV9cjuOAPv8PHQ5slYS+00IZKK+vxS9t6WmEupP+ofpBUOhFd X-Received: by 2002:a17:906:459:: with SMTP id e25mr2707434eja.379.1588168696410; Wed, 29 Apr 2020 06:58:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588168696; cv=none; d=google.com; s=arc-20160816; b=NBMNRtLuRy8S1gs6hEKLuZ5vBlOeNB91kt0dlTgnq0FACh7qpsSZ69LnOWdm4x7ZpG 0bZ1hlL/0fFqqa52EyJBm1Zwq8yg1GNS0DLDQmy6kf5S4ExNpGKICAjta4osPJch8pah CHHrRCQVVnpVNP1J5SOYZrnc/1OgVRYmTmynItnR7klFleBfLv8CYHUcwtuZRb1u3VDa RXzsqFKFms45a2RUUF4nofUecbarl48WEJ8kJQ5/zPQVLPRx+aNBzv2lUORm8rI8uZ6r fmriRqf+7T7sal0uFCSNmWiwQZrFV2r6W0oINIp71f/eQAsjndXqveU3azRMQhGXXu1V IfxA== 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=uOKiKTYYqQLiuxh1KEUt52dRf/z8h0HlHCLgLAeY+fU=; b=nsaJMNLV30tIi5CHRBs7oWLMDuF9TlylfPzk+d83aWYGmVyhf4l36A9hqasW12HbIZ /A6rKPlsFG/BjMQR4w2AyMqgHhu/YsAGqkqOEq9SwD8ezVjipWRwBcbFasMHJMZtcNOp dJqif+mqAfwrTOoNWT47tu0p+qDGZ+Ec1o1EI9TMlKxKUOg4uelq60LN/PCqRMIARr4e IqOWMlDZVNpQdYKAoMc3mv4bMCSMLmL7iVpMzk+/yN1PF8Hgqn7k3O8qa8dsDWqRvmKT FGg8Dz5muz+fX5Djw821ZcFnVafE5Ys+2z+Atu3ATSHa0W0vlvUPRE1H1ILN6EirOYvk pLkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=uexSR17L; 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 gz10si3514723ejb.167.2020.04.29.06.57.52; Wed, 29 Apr 2020 06:58:16 -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=uexSR17L; 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 S1727854AbgD2N4S (ORCPT + 99 others); Wed, 29 Apr 2020 09:56:18 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:8034 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726968AbgD2N4R (ORCPT ); Wed, 29 Apr 2020 09:56:17 -0400 X-UUID: cbccd272d3ed4c52955c8055ca546c58-20200429 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=uOKiKTYYqQLiuxh1KEUt52dRf/z8h0HlHCLgLAeY+fU=; b=uexSR17LdXRVO1V/8Fle/i3ZWIbUAdl96AIE9KwcAL3Cn/inTrMTFicvvuZsXH80QZa3FEBkXN7cuSwjMPlWCaroIfnQ8mNtaWvnAHwt5nfz/mZmgDIfFpKepuv16LMop3f37JS9DAhEi4IPz7/FzqtXJl1RE6nHIplHGbvez14=; X-UUID: cbccd272d3ed4c52955c8055ca546c58-20200429 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 820985321; Wed, 29 Apr 2020 21:56:13 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 29 Apr 2020 21:56:11 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 29 Apr 2020 21:56:10 +0800 From: Stanley Chu To: , , , , , CC: , , , , , , , , , , , Stanley Chu Subject: [PATCH v2 5/5] scsi: ufs: cleanup WriteBooster feature Date: Wed, 29 Apr 2020 21:56:10 +0800 Message-ID: <20200429135610.23750-6-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200429135610.23750-1-stanley.chu@mediatek.com> References: <20200429135610.23750-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 ZF93Yl9zdXAoKSBqdXN0IHJldHVybnMgdGhlIHJlc3VsdCBvZg0KICAgdWZzaGNkX2lzX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