FROMLIST: scsi: ufs: Add support for HCM
Support devices that report they are using host control mode. Bug: 183467926 Bug: 170940265 Bug: 183454255 Link: https://lore.kernel.org/lkml/20210607061401.58884-12-avri.altman@wdc.com/ Signed-off-by: Avri Altman <avri.altman@wdc.com> Change-Id: I7cb80024255626feacfe4c344bbcc17727291a26
This commit is contained in:
@@ -2584,12 +2584,6 @@ void ufshpb_get_dev_info(struct ufs_hba *hba, u8 *desc_buf)
|
||||
u32 max_hpb_single_cmd = HPB_MULTI_CHUNK_LOW;
|
||||
|
||||
hpb_dev_info->control_mode = desc_buf[DEVICE_DESC_PARAM_HPB_CONTROL];
|
||||
if (hpb_dev_info->control_mode == HPB_HOST_CONTROL) {
|
||||
dev_err(hba->dev, "%s: host control mode is not supported.\n",
|
||||
__func__);
|
||||
hpb_dev_info->hpb_disabled = true;
|
||||
return;
|
||||
}
|
||||
|
||||
version = get_unaligned_be16(desc_buf + DEVICE_DESC_PARAM_HPB_VER);
|
||||
if ((version != HPB_SUPPORT_VERSION) &&
|
||||
|
Reference in New Issue
Block a user