[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <pnd5y7rabll.fsf@axis.com>
Date: Tue, 13 Jun 2023 12:24:28 +0200
From: Waqar Hameed <waqar.hameed@...s.com>
To: Mark Brown <broonie@...nel.org>
CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
<linux-kernel@...r.kernel.org>, <kernel@...s.com>
Subject: Re: [PATCH] regmap: Add debugfs file for forcing field writes
On Mon, Jun 12, 2023 at 16:00 +0100 Mark Brown <broonie@...nel.org> 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?
Powered by blists - more mailing lists