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

Commit 76804c19 authored by Sayali Lokhande's avatar Sayali Lokhande
Browse files

scsi: ufs: Update setting ufs debug error state



Do not set ufs debug error state for the command
which is retried with -EAGAIN. This is not a fatal
error and QMVS tool should not fail validation
based on such error.

Change-Id: Iaf8e1e81a14bee4c37269ee3f096979ce344dfa4
Signed-off-by: default avatarSayali Lokhande <sayalil@codeaurora.org>
parent 03e6dc12
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
 *
 * This code is based on drivers/scsi/ufs/ufshcd.c
 * Copyright (C) 2011-2013 Samsung India Software Operations
 * Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
 *
 * Authors:
 *	Santosh Yaraganavi <santosh.sy@samsung.com>
@@ -3384,7 +3384,7 @@ static int ufshcd_wait_for_dev_cmd(struct ufs_hba *hba,
		ufshcd_outstanding_req_clear(hba, lrbp->task_tag);
	}

	if (err)
	if (err && err != -EAGAIN)
		ufsdbg_set_err_state(hba);

	return err;