Re: Re: [PATCH] regmap: flat: introduce register striding to save somememories

From: Mark Brown
Date: Wed Dec 30 2015 - 12:58:45 EST


On Fri, Dec 18, 2015 at 04:59:38PM +0800, lixiubo@xxxxxxxxxxxxxxxxxxxx wrote:

> > I think we'll need to continue supporting non power of two strides so
> > an unconditional conversion to shifts might be an issue - some weird DSP
> > probably does that.

> Yes, agreed.

> IMO this won't happen to MMIO, and for the device using MMIO the
> register strides should equal to power of two.

> Are there some cases I have met?

DSPs exposed via I2C and SPI are the main things I'm worried about.
It's fairly common for DSPs to have unusual word sizes including things
like three bytes.

Attachment: signature.asc
Description: PGP signature