Re: [PATCH] regmap: Add debugfs file for forcing field writes

From: Waqar Hameed
Date: Tue Jun 13 2023 - 06:41:31 EST


On Mon, Jun 12, 2023 at 16:00 +0100 Mark Brown <broonie@xxxxxxxxxx> wrote:

> If we're going to do something like this which could interfere with
> driver operation then it should be guarded like the write support is so
> that people using it have to modify the kernel to get the feature, or at
> the very least taint the kernel. This is less invasive but still might
> cause issues if someone is relying on read/modify/write behaviour.

I understand your point. Should we introduce a new macro like
`REGMAP_ALLOW_WRITE_DEBUGFS` (which requires direct code modification to
enable it) to guard this or introduce a new kernel configuration?