summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaniv Gardi <ygardi@codeaurora.org>2015-09-08 15:56:54 +0300
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:00:40 -0700
commitf1250d358db044345d436b47fad40e420002a517 (patch)
treecac66850cde528a9114db782461dd9ccf7059b51
parent4575b28635063575ac3ece2813719de6f758bb49 (diff)
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: Yaniv Gardi <ygardi@codeaurora.org>
-rw-r--r--drivers/scsi/ufs/ufs-debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ufs/ufs-debugfs.c b/drivers/scsi/ufs/ufs-debugfs.c
index 47cfc5311c21..0f2f9bd91e02 100644
--- a/drivers/scsi/ufs/ufs-debugfs.c
+++ b/drivers/scsi/ufs/ufs-debugfs.c
@@ -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;
}