Re: [BUG ?] regmap: debugfs: WARN_ON at regmap-debugfs.c:151

From: Mark Brown
Date: Tue Jul 07 2015 - 18:43:25 EST


On Wed, Jun 24, 2015 at 10:49:59PM +0200, Sergej Sawazki wrote:
> On Mon, 15 Jun 2015 15:49:33 +0100, Mark Brown wrote:

> >Are you *sure* there are physically readable registers on the device?
> >It's difficult to implement for 7x9 devices given that the top register
> >bit is in the byte used to send the register address, I expect you'll
> >find that the registers marked as readable are actually those that
> >should be cached.

> You are right, the registers are not physically readable. Sorry for the
> confusion.

> What I actually was trying to do is to read the cached register values.

OK, so what we need to do here is rearrange things so we check the cache
before we check for readability. That way if there is a cached value
then we'll return it and the readability check will still reflect the
hardware state.

Attachment: signature.asc
Description: Digital signature