FROMLIST: scsi: ufs: Do not send umap_all in host control mode

HPB-WRITE-BUFFER with buffer-id = 0x3h is supported in device control
mode only.

Bug: 183467926
Bug: 170940265
Bug: 183454255

link: https://lore.kernel.org/lkml/20210607061401.58884-11-avri.altman@wdc.com/
Signed-off-by: Avri Altman <avri.altman@wdc.com>
Change-Id: I719f8bb876270d960aa92ddc53f29c9fc863fda6
This commit is contained in:
Avri Altman
2021-04-14 12:10:35 +03:00
committed by Todd Kjos
parent 5e463110fb
commit dd41ce5581

View File

@@ -2460,6 +2460,7 @@ static void ufshpb_hpb_lu_prepared(struct ufs_hba *hba)
ufshpb_set_state(hpb, HPB_PRESENT);
if ((hpb->lu_pinned_end - hpb->lu_pinned_start) > 0)
queue_work(ufshpb_wq, &hpb->map_work);
if (!hpb->is_hcm)
ufshpb_issue_umap_all_req(hpb);
} else {
dev_err(hba->dev, "destroy HPB lu %d\n", hpb->lun);