Skip to content

Commit 39fa228

Browse files
andy-shevgregkh
authored andcommitted
pinctrl: cy8c95x0: Enable regmap locking for debug
[ Upstream commit aac4470 ] When regmap locking is disabled, debugfs is also disabled. Enable locking for debug when CONFIG_DEBUG_PINCTRL is set. Fixes: f71aba3 ("pinctrl: cy8c95x0: Use single I2C lock") Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent b743296 commit 39fa228

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/pinctrl/pinctrl-cy8c95x0.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,11 @@ static const struct regmap_config cy8c9520_i2c_regmap = {
472472
.max_register = 0, /* Updated at runtime */
473473
.num_reg_defaults_raw = 0, /* Updated at runtime */
474474
.use_single_read = true, /* Workaround for regcache bug */
475+
#if IS_ENABLED(CONFIG_DEBUG_PINCTRL)
476+
.disable_locking = false,
477+
#else
475478
.disable_locking = true,
479+
#endif
476480
};
477481

478482
static inline int cy8c95x0_regmap_update_bits_base(struct cy8c95x0_pinctrl *chip,

0 commit comments

Comments
 (0)