Re: regmap: how to support devices with 'nested' pages

2015-03-10 Thread Mark Brown
On Tue, Mar 10, 2015 at 11:33:24AM +0200, Peter Ujfalusi wrote: > Do you know any other device which have similar addressing? Do you have advice > on how to handle this? Should I open code the book switching in the driver, > which means that I should not use the cache at all in regmap. I've

regmap: how to support devices with 'nested' pages

2015-03-10 Thread Peter Ujfalusi
Hi Mark, I got a device which registers are arranged in 'books' and pages: book0 page0 page1 ... page127 book1 page0 page1 ... page127 ... book255 page0 page1 ... page127 The pages can be selected via register0 of each page (in a standard way), however the book switching can only be

regmap: how to support devices with 'nested' pages

2015-03-10 Thread Peter Ujfalusi
Hi Mark, I got a device which registers are arranged in 'books' and pages: book0 page0 page1 ... page127 book1 page0 page1 ... page127 ... book255 page0 page1 ... page127 The pages can be selected via register0 of each page (in a standard way), however the book switching can only be

Re: regmap: how to support devices with 'nested' pages

2015-03-10 Thread Mark Brown
On Tue, Mar 10, 2015 at 11:33:24AM +0200, Peter Ujfalusi wrote: Do you know any other device which have similar addressing? Do you have advice on how to handle this? Should I open code the book switching in the driver, which means that I should not use the cache at all in regmap. I've never