Re: [PATCH 2/4] regmap: Allow disabling debugfs via regmap_config

From: Mark Brown
Date: Mon Dec 01 2025 - 07:04:10 EST


On Sat, Nov 29, 2025 at 03:20:40PM +0100, Richard Weinberger wrote:
> Regmap already disables register access via debugfs as soon as a register
> map is used without taking locks.
> Go a step further and allow disabling debugfs via regmap_config such that
> device drivers can decide on their own whether uncontrolled register access
> via debugfs is harmful.

What's the use case for this? Drivers can already mark registers as
unreadable and precious to stop spurious reads.

Attachment: signature.asc
Description: PGP signature