[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1c1f7fae-7eee-473a-b637-af021510d7d3@sirena.org.uk>
Date: Tue, 13 Jun 2023 16:47:10 +0100
From: Mark Brown <broonie@...nel.org>
To: Ricard Wanderlof <ricardw@...s.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Waqar Hameed <waqar.hameed@...s.com>, kernel@...s.com,
linux-kernel@...r.kernel.org,
"Rafael J. Wysocki" <rafael@...nel.org>
Subject: Re: [PATCH v2] regmap: Add debugfs file for forcing field writes
On Tue, Jun 13, 2023 at 05:15:10PM +0200, Ricard Wanderlof wrote:
> I can understand that enabling a write-always behavior results in a
> different behavior on the associated bus (e.g. I2C), but in the end it
> shouldn't affect the functionality of the peripheral device any more than
> rearranging driver code to perform regmap writes in a different order,
> which might also lead to fewer or more bus writes.
> It seems I'm clearly in the wrong here, so there must be some scenario
> I've missed. It just doesn't seem that dangerous; it's a debug
> functionality after all.
There are devices where the act of writing to a register can have side
effects even if the values in the register are the same (for example
triggering some kind of recalibration based on the "new" value). It's
rare, and it's probably more likely to be annoying or disruptive than
actually dangerous, but it is something drivers might be relying on.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists