Re: [PATCH] regmap: Account for register length when chunking

From: Mark Brown
Date: Mon May 15 2023 - 10:59:47 EST


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.

Attachment: signature.asc
Description: PGP signature