Skip to content

Commit

Permalink
regmap: debugfs: Don't mark lockdep as broken due to debugfs write
Browse files Browse the repository at this point in the history
A register write to hardware is reasonably unlikely to cause locking
dependency issues, the reason we're tainting is that unexpected changes
in the hardware configuration may confuse drivers.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed May 12, 2013
1 parent 68e850d commit f9e464a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/regmap/regmap-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ static ssize_t regmap_map_write_file(struct file *file,
return -EINVAL;

/* Userspace has been fiddling around behind the kernel's back */
add_taint(TAINT_USER, LOCKDEP_NOW_UNRELIABLE);
add_taint(TAINT_USER, LOCKDEP_STILL_OK);

ret = regmap_write(map, reg, value);
if (ret < 0)
Expand Down

0 comments on commit f9e464a

Please sign in to comment.