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

Commit 7600574a authored by Maya Erez's avatar Maya Erez
Browse files

scsi: ufs: Clear the aborted tag in case of ICE error



ICE error is handled as a fatal error, hence all the outstanding
requests are being aborted.
This patch clears the tag in case of device management requests
and fixes a bug where outstanding_tasks was cleared instead of
outstanding_reqs.

Change-Id: If160b6179edd4e36c541ed7f1b14dfc01de0842b
Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
parent c3e1cf6f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4636,7 +4636,7 @@ void ufshcd_abort_outstanding_transfer_requests(struct ufs_hba *hba, int result)
			lrbp->cmd = NULL;
			/* Clear pending transfer requests */
			ufshcd_clear_cmd(hba, index);
			__clear_bit(index, &hba->outstanding_tasks);
			__clear_bit(index, &hba->outstanding_reqs);
			clear_bit_unlock(index, &hba->lrb_in_use);
			/* Do not touch lrbp after scsi done */
			cmd->scsi_done(cmd);
@@ -4645,6 +4645,7 @@ void ufshcd_abort_outstanding_transfer_requests(struct ufs_hba *hba, int result)
			if (hba->dev_cmd.complete) {
				ufshcd_cond_add_cmd_trace(hba, index,
							"dev_failed");
				__clear_bit(index, &hba->outstanding_reqs);
				complete(hba->dev_cmd.complete);
			}
		}