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

Commit 9a58bb99 authored by Yaniv Gardi's avatar Yaniv Gardi
Browse files

scsi: ufs-debugfs: overwrite error scenario value via debugfs



In the old code, there is no way to "disable" the already enabled
error scenarios since the operator in use is a bit-wise OR operator.
This change fixes this issue. Now, the new value overwrites the previous
value so it's possible to disable all error scenarios by:
echo 0 > /d/ufshcd0/err_inj_scenario

Change-Id: I21eadb3345f6587edf5232ea3c03702bfdb930ad
Signed-off-by: default avatarYaniv Gardi <ygardi@codeaurora.org>
parent 42d6f3b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -357,7 +357,7 @@ static ssize_t ufsdbg_err_inj_scenario_write(struct file *file,
		return ret;
	}

	hba->debugfs_files.err_inj_scenario_mask |= err_scen;
	hba->debugfs_files.err_inj_scenario_mask = err_scen;

	return cnt;
}