···529529 struct regmap_range_node *range_node;530530 const char *devname = "dummy";531531532532+ if (map->debugfs_disable)533533+ return;534534+532535 /* If we don't have the debugfs root yet, postpone init */533536 if (!regmap_debugfs_root) {534537 struct regmap_debugfs_node *node;
···264264 * field is NULL but precious_table (see below) is not, the265265 * check is performed on such table (a register is precious if266266 * it belongs to one of the ranges specified by precious_table).267267+ * @disable_locking: This regmap is either protected by external means or268268+ * is guaranteed not be be accessed from multiple threads.269269+ * Don't use any locking mechanisms.267270 * @lock: Optional lock callback (overrides regmap's default lock268271 * function, based on spinlock or mutex).269272 * @unlock: As above for unlocking.···336333 bool (*readable_reg)(struct device *dev, unsigned int reg);337334 bool (*volatile_reg)(struct device *dev, unsigned int reg);338335 bool (*precious_reg)(struct device *dev, unsigned int reg);336336+337337+ bool disable_locking;339338 regmap_lock lock;340339 regmap_unlock unlock;341340 void *lock_arg;