From patchwork Sat May 30 15:13:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanley Chu X-Patchwork-Id: 11580461 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 47435166C for ; Sat, 30 May 2020 15:13:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 22ACD207D5 for ; Sat, 30 May 2020 15:13:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="Kza9OG7A" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729123AbgE3PN6 (ORCPT ); Sat, 30 May 2020 11:13:58 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:57381 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728927AbgE3PNz (ORCPT ); Sat, 30 May 2020 11:13:55 -0400 X-UUID: 3f1c7e5bf82a4482ac02fdac71eec81b-20200530 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=SPJ40cDjqiU6ZOCt6LvTtGZM/kEwgPDknQLr1x5cZfY=; b=Kza9OG7AGv27NbJbLE9OIiD+PFPwgDGluPkAC3Im8IQv9jDqOzohNkWZM/9L7oJPBaYnu85pfTndcy0E82Xb0Q0veNl8YsScOl/UtHcbGDESH1//7koFAAJ2gvtsCibjdetxPwVEZBVL7p0KrpyLjuRFDgF8LuLuYFQvDf+XMFI=; X-UUID: 3f1c7e5bf82a4482ac02fdac71eec81b-20200530 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1014182968; Sat, 30 May 2020 23:13:51 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 30 May 2020 23:13:37 +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; Sat, 30 May 2020 23:13:37 +0800 From: Stanley Chu To: , , , , CC: , , , , , , , , , , , , , , Stanley Chu Subject: [PATCH v1 2/2] scsi: ufs-mediatek: Support WriteBooster on Samsung UFS devices Date: Sat, 30 May 2020 23:13:37 +0800 Message-ID: <20200530151337.6182-3-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200530151337.6182-1-stanley.chu@mediatek.com> References: <20200530151337.6182-1-stanley.chu@mediatek.com> MIME-Version: 1.0 X-TM-SNTS-SMTP: D9C1B2FE1DB9811E2C52585261D356E405E346685F5B7B75511E572B46C88C132000:8 X-MTK: N Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Add device quirk "UFS_DEVICE_QUIRK_WB_USING_SPECIAL_SELECTOR" on all Samsung UFS devices to enable WriteBooster on those devices. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufs-mediatek.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/ufs/ufs-mediatek.c b/drivers/scsi/ufs/ufs-mediatek.c index d587b3276aa8..078a1e3d05d3 100644 --- a/drivers/scsi/ufs/ufs-mediatek.c +++ b/drivers/scsi/ufs/ufs-mediatek.c @@ -32,6 +32,9 @@ ufs_mtk_smc(UFS_MTK_SIP_DEVICE_RESET, high, res) static struct ufs_dev_fix ufs_mtk_dev_fixups[] = { + UFS_FIX(UFS_VENDOR_SAMSUNG, UFS_ANY_MODEL, + UFS_DEVICE_QUIRK_SUPPORT_EXTENDED_FEATURES | + UFS_DEVICE_QUIRK_WB_SPECIAL_SELECTOR), UFS_FIX(UFS_VENDOR_SKHYNIX, "H9HQ21AFAMZDAR", UFS_DEVICE_QUIRK_SUPPORT_EXTENDED_FEATURES), END_FIX