[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZGJI2zU/bxDPxLAh@finisterre.sirena.org.uk>
Date: Mon, 15 May 2023 23:59:39 +0900
From: Mark Brown <broonie@...nel.org>
To: Jim Wylder <jwylder@...gle.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] regmap: Account for register length when chunking
On Mon, May 15, 2023 at 09:39:26AM -0500, Jim Wylder wrote:
> To avoid this problem, add a flag in the regmap_bus structure to declare
> that, for a given bus, the register length should be accounted for. Set
> the flag to true for I2C buses, and subtract the length of the register
> from the maximum transmission value if the flag is set.
This will be needed for any bus with a format operation so we should
just check for that and it should also take account of any pad bytes.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists