Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp648369ybz; Wed, 29 Apr 2020 07:01:10 -0700 (PDT) X-Google-Smtp-Source: APiQypK2O7epNPlwra4QMsi2ImOAgjaRQk0eTy55HrmiuCTRWVmMpFyjCYmXDS5sbVfGp0CAE7WE X-Received: by 2002:a17:906:adb:: with SMTP id z27mr2703803ejf.263.1588168870373; Wed, 29 Apr 2020 07:01:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588168870; cv=none; d=google.com; s=arc-20160816; b=RaPMEgOX7uov53WLjcRj6g9GB9qMtwaYuszDRu3FgKGf7exb3xPPTam2Rj/DiS0P4N cB+liBINTcyUon9VWCXi0/qpudN3rAig5UZ4FSKFUUL5VE+VFy7MpvKTQb7AE3GJ3TMH C4NL87UYuFR8MaacD96ocle1yqGVHFtGqZu4vz8E4yb+emMA6JdCXeyesL7B9rUjTwg9 wK1SVjex7ZXY3XVFIo896gC36HtOwga8RjkRFP1isZQvIpbhLKOtQioe/UHkmxptF3zO kqJbtHLQHWBqKL1VszjWk2Oy1Pimu9GudLzcnsjdzaNnR621r8Ccefeqqq0vSdEsmC8c UXQg== 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=TtiqXGvs1ddJ8sOI7BA0Q8oUmtYb84kP4m655wKXu4U=; b=00+tkRl68Wuf9rlQ0jj7L9YdOMwwtYwsC9VXhbPR1hBmteWFYhuPa54n9yjM+qeLAL bubSi3wmtUOgbb+A7NefAp4aBhfCtxtl0979aNTj9sGVuI5vMDj3Z3mVj3JqjvoMlJn/ AGGUP8lWA5TOKqnoL3XQdrixuwvqYmioNI2TQl0aSb5NXki/8LiqEe9IqxLBecczbQQy VUG60eXXiTKSf6yi5xrkBdF1Kitdk4lWalOBkakPhBeXPE4r0DIcmA5+gr+rkVdsoYDr sepBQaQ7t8TYRTMJeZFI8t26x4JKKeO0ybNbXa0He2r42IFgZMaZJ1IssOWajHaVDLHw BeGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=etqFUgvj; 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 b5si3597899edq.191.2020.04.29.07.00.46; Wed, 29 Apr 2020 07:01:10 -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=etqFUgvj; 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 S1727794AbgD2N4Q (ORCPT + 99 others); Wed, 29 Apr 2020 09:56:16 -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 S1726853AbgD2N4Q (ORCPT ); Wed, 29 Apr 2020 09:56:16 -0400 X-UUID: 24bcba6f1b9d441594b1253f2acb1697-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=TtiqXGvs1ddJ8sOI7BA0Q8oUmtYb84kP4m655wKXu4U=; b=etqFUgvjkSUTWyQDdXJG8eWHlZZ3IBUWG+sVmLd2rv3xZvx/VM88+jNk+UX9HtAq9LSXbP6KXMQhfiVErHBxv90jF8MXfYVmmtxpiQmmjowjpBDaWcLfhmvFo6ZGMa/PDN+qloTOCOfiJxg9EBPbFEyflwZhkJ9RRxoWbU1Uc4Q=; X-UUID: 24bcba6f1b9d441594b1253f2acb1697-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 2071290289; Wed, 29 Apr 2020 21:56:13 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 29 Apr 2020 21:56:10 +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:09 +0800 From: Stanley Chu To: , , , , , CC: , , , , , , , , , , , Stanley Chu Subject: [PATCH v2 1/5] scsi: ufs: allow legacy UFS devices to enable WriteBooster Date: Wed, 29 Apr 2020 21:56:06 +0800 Message-ID: <20200429135610.23750-2-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 V3JpdGVCb29zdGVyIGZlYXR1cmUgbWF5IGJlIHN1cHBvcnRlZCBieSBzb21lIGxlZ2FjeSBVRlMg ZGV2aWNlcw0KKGkuZS4sIDwgMy4xKSBieSB1cGdyYWRpbmcgZmlybXdhcmUuDQoNClRvIGVuYWJs ZSBXcml0ZUJvb3N0ZXIgZmVhdHVyZSBpbiBzdWNoIGRldmljZXMsIHJlbG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