Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 160c7573 authored by Asutosh Das's avatar Asutosh Das Committed by Gerrit - the friendly Code Review server
Browse files

scsi: ufs: Dont send abort command to w-luns



As per spec, w-luns can only handle certain set of commands.
Table 10-58 lists down the commands that can be handled by
each of the w-luns and abort is not one of them.

Hence do not send abort to a w-lun.

CRs-fixed: 2234578
Change-Id: I523d2bc8860ac1d9decff82e66a1ffe97a198e52
Signed-off-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
parent d02d62b8
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -7696,7 +7696,10 @@ static int ufshcd_abort(struct scsi_cmnd *cmd)
	 * To avoid these unnecessary/illegal step we skip to the last error
	 * handling stage: reset and restore.
	 */
	if (lrbp->lun == UFS_UPIU_UFS_DEVICE_WLUN)
	if ((lrbp->lun == UFS_UPIU_UFS_DEVICE_WLUN) ||
	    (lrbp->lun == UFS_UPIU_REPORT_LUNS_WLUN) ||
	    (lrbp->lun == UFS_UPIU_BOOT_WLUN) ||
	    (lrbp->lun == UFS_UPIU_RPMB_WLUN))
		return ufshcd_eh_host_reset_handler(cmd);

	ufshcd_hold_all(hba);