From 117cca314f04c3ff35853e86baa6f9e0adebe465 Mon Sep 17 00:00:00 2001 From: zhu chuanchun Date: Mon, 23 Oct 2023 15:22:18 +0800 Subject: [PATCH] ufs: enable Micron HID feature. On previous projects, Micron use Samsung driver to fulfill the TW, HPB and HID features, so could use CONFIG_MICRON_HPB to check if the Micron chip of one project support TW, HPB and HID. However, we have use original WB to instead of Samsung TW, and disable HPB also. Now, Micron use Samsung HID driver only, we need add Micron HID config to enable Samsung feature init, or Micron HID funcion will not active. Change-Id: Ie75bd535e4b56e7d359f3b8687fa30405ade6358 Reviewed-on: https://gerrit.mot.com/2774267 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zonghua Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- drivers/scsi/ufs/ufshcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 7b1ed7744336..39a687a8a063 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -243,7 +243,7 @@ static inline int is_support_hpb_100_device(unsigned int mfrid){ #endif #if defined(CONFIG_UFSFEATURE) static inline int is_support_hpb_200_device(unsigned int mfrid){ -#if defined(CONFIG_MICRON_HPB) +#if defined(CONFIG_MICRON_HPB) || defined(CONFIG_MICRON_UFSHID) return (IS_SAMSUNG_DEVICE(mfrid) || IS_MICRON_DEVICE(mfrid)); #else return IS_SAMSUNG_DEVICE(mfrid);