Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regmap: debugfs: emit a debug message when locking is disabled

We currently silently omit creating the debugfs entries when regmap
locking is disabled. Users may not be aware of the reason for which
regmap files don't show up in debugfs. Add a dev_dbg() message
explaining that.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Bartosz Golaszewski and committed by
Mark Brown
a5ba91c3 72465736

+3 -1
+3 -1
drivers/base/regmap/regmap-debugfs.c
··· 529 529 struct regmap_range_node *range_node; 530 530 const char *devname = "dummy"; 531 531 532 - if (map->debugfs_disable) 532 + if (map->debugfs_disable) { 533 + dev_dbg(map->dev, "regmap locking disabled - not creating debugfs entries\n"); 533 534 return; 535 + } 534 536 535 537 /* If we don't have the debugfs root yet, postpone init */ 536 538 if (!regmap_debugfs_root) {