[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150526190039.GX26599@saruman.tx.rr.com>
Date: Tue, 26 May 2015 14:00:39 -0500
From: Felipe Balbi <balbi@...com>
To: Andreas Werner <andy@...nerandy.de>
CC: <linux-kernel@...r.kernel.org>
Subject: Re: regmap different register size
Hi,
On Tue, May 26, 2015 at 08:54:25PM +0200, Andreas Werner wrote:
> i have a question regarding regmap usage.
>
> I have a i2c multifunction device which does have a register and value
> width of 8bits except the revision register. The revision can only be
> read by a i2c block transfer.
read revision during probe using i2c block transfer, cache the value in
your own driver structure and all subsequent reads just return the
cached value. Everything else should be ok via regmap. This is first
thing that came to mind, maybe there's a better way.
--
balbi
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists