@@ -2411,12 +2411,7 @@ static inline int ufshcd_hba_capabilities(struct ufs_hba *hba)
2411
2411
else
2412
2412
hba -> lsdb_sup = true;
2413
2413
2414
- if (!hba -> mcq_sup )
2415
- return 0 ;
2416
-
2417
2414
hba -> mcq_capabilities = ufshcd_readl (hba , REG_MCQCAP );
2418
- hba -> ext_iid_sup = FIELD_GET (MASK_EXT_IID_SUPPORT ,
2419
- hba -> mcq_capabilities );
2420
2415
2421
2416
return 0 ;
2422
2417
}
@@ -8120,31 +8115,6 @@ static void ufshcd_temp_notif_probe(struct ufs_hba *hba, const u8 *desc_buf)
8120
8115
}
8121
8116
}
8122
8117
8123
- static void ufshcd_ext_iid_probe (struct ufs_hba * hba , u8 * desc_buf )
8124
- {
8125
- struct ufs_dev_info * dev_info = & hba -> dev_info ;
8126
- u32 ext_ufs_feature ;
8127
- u32 ext_iid_en = 0 ;
8128
- int err ;
8129
-
8130
- /* Only UFS-4.0 and above may support EXT_IID */
8131
- if (dev_info -> wspecversion < 0x400 )
8132
- goto out ;
8133
-
8134
- ext_ufs_feature = get_unaligned_be32 (desc_buf +
8135
- DEVICE_DESC_PARAM_EXT_UFS_FEATURE_SUP );
8136
- if (!(ext_ufs_feature & UFS_DEV_EXT_IID_SUP ))
8137
- goto out ;
8138
-
8139
- err = ufshcd_query_attr_retry (hba , UPIU_QUERY_OPCODE_READ_ATTR ,
8140
- QUERY_ATTR_IDN_EXT_IID_EN , 0 , 0 , & ext_iid_en );
8141
- if (err )
8142
- dev_err (hba -> dev , "failed reading bEXTIIDEn. err = %d\n" , err );
8143
-
8144
- out :
8145
- dev_info -> b_ext_iid_en = ext_iid_en ;
8146
- }
8147
-
8148
8118
static void ufshcd_set_rtt (struct ufs_hba * hba )
8149
8119
{
8150
8120
struct ufs_dev_info * dev_info = & hba -> dev_info ;
@@ -8340,9 +8310,6 @@ static int ufs_get_device_desc(struct ufs_hba *hba)
8340
8310
8341
8311
ufs_init_rtc (hba , desc_buf );
8342
8312
8343
- if (hba -> ext_iid_sup )
8344
- ufshcd_ext_iid_probe (hba , desc_buf );
8345
-
8346
8313
/*
8347
8314
* ufshcd_read_string_desc returns size of the string
8348
8315
* reset the error value
0 commit comments