Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1389665ybg; Thu, 11 Jun 2020 08:37:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwABNabO/HiPPBBxyLaRFSPMKoh8If+7E6FghzXIpEwXoJbSvuLF/uJWAJprYNu62mInc4+ X-Received: by 2002:a05:6402:b13:: with SMTP id bm19mr7664269edb.82.1591889851901; Thu, 11 Jun 2020 08:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591889851; cv=none; d=google.com; s=arc-20160816; b=gJgFJQ9gb6xzhj5+8lAFRSkncpgIoJaJO3TG+22QQ1FRLis3Bttc7q5StuY3bCfK+G MTlja0ot39amqUOf4XPr5OMuMUBZwo9NIJTM5BvQAMdKlJ99NZQJNX60/cU/JXt7qZV8 mfO3MOtl5sNgnKfcaSARZcTvZRvQCEZkhohDnWODt+giWI/xq25b+r4ogNPaTd/SPQ1G f3fMkySW4UBl1R55ZtmcD+adhNsJbMu9gB2Byj7BjsmHGVWeBuP6Mvnkk2FfSXgrrDus ciXjq1BLvs2EXVo25VuD17N6tdgUpPducs0UdKEgsi7ek/pSGerKXaIu65aLFatObLe9 5Peg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:content-language :thread-index:content-transfer-encoding:mime-version:message-id:date :subject:in-reply-to:cc:to:from:dkim-signature:dkim-filter; bh=VTu+Wl7o0f6zMSeWa7X78SNfhzjGVixbL6VZNPfGdmg=; b=iGv3zn4iA2/CXTKpyWrMgGFvxH/eLwdDtdsyU1zPLtIMFRZgQtyP79akj07rCt6yRA /sSHP8mj1HQSc41LLaHlbEfuq1ojhIOfPMlqdth9lV7+erG1MXaG/1Ya14Lc0KIdhP3U /EB05kW40RsnTPLGp1zLk3xhjFT2GozEvxlZnjMviUmn5nFMuFnrNPS0drzFXmYha6Fp Sme66qAzEjebhMkecX3NUiJ/l6IvWB5KAYnzUlWXaAepUV3mAAE5ioYEVzOF29F6HisE LzYVDi2H+USkdSbIVykPY3rzqeN5lM8Qbg7NYVhkMgqTN/w7D6ULaaGvgi9bxHDLCbNR 7UcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=iQ0nRG85; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g30si1794651ede.28.2020.06.11.08.37.08; Thu, 11 Jun 2020 08:37:31 -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=@samsung.com header.s=mail20170921 header.b=iQ0nRG85; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728506AbgFKPex (ORCPT + 99 others); Thu, 11 Jun 2020 11:34:53 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:62533 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728380AbgFKPew (ORCPT ); Thu, 11 Jun 2020 11:34:52 -0400 Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20200611153450epoutp02a5edff8ea96e7e641ce9a664ebe7a79a~Xhz0_oh4d2592525925epoutp02U for ; Thu, 11 Jun 2020 15:34:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20200611153450epoutp02a5edff8ea96e7e641ce9a664ebe7a79a~Xhz0_oh4d2592525925epoutp02U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1591889690; bh=VTu+Wl7o0f6zMSeWa7X78SNfhzjGVixbL6VZNPfGdmg=; h=From:To:Cc:In-Reply-To:Subject:Date:References:From; b=iQ0nRG854K8lJRfoqScKhTME2vv4fHTh1qByV8tGB3wCWE86UKbxHld/zCAAWTO4v Zw6ZFe+xYh1cnteZJWBYSDC/70VhB8qfLs84YnQaDMSOFVk9wAHK3CNji/vaMNlgtZ hUDZW+J0uWiJeoPldDAYdiYmqsv9GDlrrepMvKjA= Received: from epsmges5p2new.samsung.com (unknown [182.195.42.74]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20200611153449epcas5p439a028547161adf40aa18bbae9cde178~Xhz0X6OTY1533615336epcas5p4U; Thu, 11 Jun 2020 15:34:49 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 1C.59.09703.91F42EE5; Fri, 12 Jun 2020 00:34:49 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20200611153449epcas5p32bb9c35be3553b953663e2bf3b87d1ff~Xhzzzd3az0869408694epcas5p3J; Thu, 11 Jun 2020 15:34:49 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200611153449epsmtrp16d518940d9912579f6c572f6d5311f4d~XhzzygOJo2872128721epsmtrp1Q; Thu, 11 Jun 2020 15:34:49 +0000 (GMT) X-AuditID: b6c32a4a-4cbff700000025e7-58-5ee24f192c3e Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 61.40.08303.81F42EE5; Fri, 12 Jun 2020 00:34:48 +0900 (KST) Received: from alimakhtar02 (unknown [107.108.234.165]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200611153444epsmtip1bd6066f07ba6943205cef3e50aa6b2f1~XhzveSxLR2645626456epsmtip1D; Thu, 11 Jun 2020 15:34:44 +0000 (GMT) From: "Alim Akhtar" To: "'Stanley Chu'" , , , , , Cc: , , , , , , , , , , , , In-Reply-To: <20200610053645.19975-3-stanley.chu@mediatek.com> Subject: RE: [PATCH v1 2/2] scsi: ufs: Cleanup device vendor and quirk definition Date: Thu, 11 Jun 2020 21:04:42 +0530 Message-ID: <001d01d64005$d7564e20$8602ea60$@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJVHgnpAIsYLnnv5TRNaRnRfw5FngLAwJM8ARCEfBKnt0OJQA== Content-Language: en-in X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrEKsWRmVeSWpSXmKPExsWy7bCmuq6k/6M4gxNHtSxOz7vKbLG37QS7 xcufV9ksDj7sZLGY9uEns8Wn9ctYLf6f/81uce3WfDaLVW92sFksurGNyaL1/ytmi02Pr7Fa XN41h83icvNFRovu60DZ5cf/MVk0tRhbbP30m9Vi6dabjA7CHpeveHtc7utl8tg56y67x4RF Bxg9Ni+p92g5uZ/F4/v6DjaPj09vsXh83iTn0X6gmymAK4rLJiU1J7MstUjfLoEr4/Pc92wF U0UqFk1/ytTA2C3YxcjJISFgItE28R5LFyMXh5DAbkaJjzdgnE+MEu82H2SGcD4zStzdPpkF puXUw31QiV2MEj2dX6GcN4wSk08dYwapYhPQldixuI0NxBYR2MYoceSdL0gRs8AfJokdzRPA RnEK2ElMe7yBEcQWFgiW6Lj3DqyBRUBV4vybRawgNq+ApcS0T8+YIWxBiZMzn4D1MgvIS2x/ O4cZ4iQFiZ9Pl7FCLHOS2DHnJitEjbjE0Z89YNdJCEznlJiz8wjUDy4Sr2duZ4OwhSVeHd/C DmFLSbzsbwOyOYDsbImeXcYQ4RqJpfOOQbXaSxy4MocFpIRZQFN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WxeQUsJaZ9esYMYQtKnJz5hKWLkQNoqp5E20aw VmYBeYntb+cwQ5ynIPHz6TKwVhEBJ4kdc26yQtSISxz92cM8gVF4FpJJsxAmzUIyaRaSjgWM LKsYJVMLinPTc4sNC4zyUsv1ihNzi0vz0vWS83M3MYKjXktrB+OeVR/0DjEycTAeYpTgYFYS 4RUUfxgnxJuSWFmVWpQfX1Sak1p8iFGag0VJnPfrrIVxQgLpiSWp2ampBalFMFkmDk6pBqal hrU7HrceEqlMD70uqZ/8sWeOxeWtK1PbJj15K6OReOfCn8/TmrfMcXHgmuwara1060CPvU1j 40HOuaJ3zJSrVy9Y/Pgmw+HvdukpCsxbXko+uvj8xN96jorUF0HXp+ndcPxyyqVCIjyR5WR3 ofgBP5km7s0T1d+VtH87fvJEpOirA58uHQ71DrqX+/az059TLLMZixNMdLK/szR80P1wk/W3 04rts3rfK6VNffUg3H7N9lPHeT40rvfgbrntZdm523zJ2hsqv3kObW3jrS/7MC3gSmdH4Eyv w/deT7t5okX5n5L0f/WnWprr/2kZZzQ2bBQteWD3w72Iu86MceeFrl2GZ8unPThg9FtMx+eU EktxRqKhFnNRcSIAW0SAJWkDAAA= X-CMS-MailID: 20200611153449epcas5p32bb9c35be3553b953663e2bf3b87d1ff X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P X-CMS-RootMailID: 20200610053659epcas5p391a3c736dd5f59ec45cfeb3715cbe1a1 References: <20200610053645.19975-1-stanley.chu@mediatek.com> <20200610053645.19975-3-stanley.chu@mediatek.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stanley > -----Original Message----- > From: Stanley Chu > Sent: 10 June 2020 11:07 > To: linux-scsi@vger.kernel.org; martin.petersen@oracle.com; > avri.altman@wdc.com; alim.akhtar@samsung.com; jejb@linux.ibm.com; > asutoshd@codeaurora.org > Cc: beanhuo@micron.com; cang@codeaurora.org; matthias.bgg@gmail.com; > bvanassche@acm.org; linux-mediatek@lists.infradead.org; linux-arm- > kernel@lists.infradead.org; linux-kernel@vger.kernel.org; > kuohong.wang@mediatek.com; peter.wang@mediatek.com; chun- > hung.wu@mediatek.com; andy.teng@mediatek.com; > chaotian.jing@mediatek.com; cc.chou@mediatek.com; Stanley Chu > > Subject: [PATCH v1 2/2] scsi: ufs: Cleanup device vendor and quirk definition > > Cleanup below items, > - Arrange vendor name in alphabetical order > - Squash device quirks as compact as possible in device quirk table > to enhance performance of the lookup. > > Signed-off-by: Stanley Chu > --- > drivers/scsi/ufs/ufs_quirks.h | 2 +- > drivers/scsi/ufs/ufshcd.c | 6 ++---- > 2 files changed, 3 insertions(+), 5 deletions(-) > > diff --git a/drivers/scsi/ufs/ufs_quirks.h b/drivers/scsi/ufs/ufs_quirks.h index > e80d5f26a442..2a0041493e30 100644 > --- a/drivers/scsi/ufs/ufs_quirks.h > +++ b/drivers/scsi/ufs/ufs_quirks.h > @@ -13,9 +13,9 @@ > #define UFS_ANY_MODEL "ANY_MODEL" > > #define UFS_VENDOR_MICRON 0x12C > -#define UFS_VENDOR_TOSHIBA 0x198 > #define UFS_VENDOR_SAMSUNG 0x1CE > #define UFS_VENDOR_SKHYNIX 0x1AD > +#define UFS_VENDOR_TOSHIBA 0x198 > #define UFS_VENDOR_WDC 0x145 > > /** > diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index > dea4fddf9332..7c93cb446f51 100644 > --- a/drivers/scsi/ufs/ufshcd.c > +++ b/drivers/scsi/ufs/ufshcd.c > @@ -219,10 +219,8 @@ static struct ufs_dev_fix ufs_fixups[] = { > UFS_FIX(UFS_VENDOR_MICRON, UFS_ANY_MODEL, > UFS_DEVICE_QUIRK_DELAY_BEFORE_LPM), > UFS_FIX(UFS_VENDOR_SAMSUNG, UFS_ANY_MODEL, > - UFS_DEVICE_QUIRK_DELAY_BEFORE_LPM), > - UFS_FIX(UFS_VENDOR_SAMSUNG, UFS_ANY_MODEL, > - UFS_DEVICE_QUIRK_RECOVERY_FROM_DL_NAC_ERRORS), > - UFS_FIX(UFS_VENDOR_SAMSUNG, UFS_ANY_MODEL, > + UFS_DEVICE_QUIRK_DELAY_BEFORE_LPM | > + UFS_DEVICE_QUIRK_RECOVERY_FROM_DL_NAC_ERRORS | > UFS_DEVICE_QUIRK_HOST_PA_TACTIVATE), > UFS_FIX(UFS_VENDOR_TOSHIBA, UFS_ANY_MODEL, > UFS_DEVICE_QUIRK_DELAY_BEFORE_LPM), > -- While at this, may be arrange the table in alphabetical order. > 2.18.0