[lkml]   [2013]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: regmap: Question about devices with unequal register sizes
On Sat, Feb 16, 2013 at 06:03:51PM +0100, Daniel Mack wrote:

> The register layout is described on page 26, and they call their
> registers 'subaddresses'. Up to sub-address 0x1c, I see no problem
> mapping that to a simple 8-bit regmap layout, but above that, access
> gets trickier because registers change their sizes, which breaks the cache.

The regmap I/O code isn't making any effort to support such devices, the
hardware is just too crazy to worry about. The best you can do is use
the no-bus support and open code your physical I/O so you can still use
the cache.
[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2013-02-17 18:01    [W:0.046 / U:0.632 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site