Re: [PATCH 1/1] regmap: Add support for continously numbered pagesacross regmap range

From: Mark Brown
Date: Wed Nov 28 2012 - 06:34:35 EST


On Wed, Nov 28, 2012 at 10:11:05AM +0000, Navada Kanyana, Mukund wrote:

Fix your mailer to word wrap within paragraphs.

> > I'm sorry but I can't understand what this is supposed to do. The
> > current paging code expects pages to be numbered continuously with no
> > gaps. Can you please clarify?

> But the page number is expected to increase only till end of range.
> But in devices like TLV320AIC3256, the page number increases beyond
> range.

What does this mean? How can we have a page beyond the end of the
range?

> Pages 0 through Page 1 --> first register range for device
> configuration. Page 8 through Page 16 --> second range for DSP1
> coefficient memory Page 26 through Page 34 --> third range for DSP2
> coefficient memory

> Window length of each page is 128. So if we need to correctly write
> the page number in selector register for second range, start_page_num
> would be 8. If we did not have start_page_num, it would write 0 to
> selector register.

I'm sorry but I don't understand how that would happen? What breaks
accessing page 8? This sounds like you're doing something wrong when
you're trying ton use the paging.

Attachment: signature.asc
Description: Digital signature