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

From: Sergej Sawazki
Date: Mon Jun 15 2015 - 08:43:04 EST




Am 15. Juni 2015 11:49:22 MESZ, schrieb Mark Brown <broonie@xxxxxxxxxx>:
>On Sat, Jun 13, 2015 at 03:21:02PM +0200, Sergej Sawazki wrote:
>
>> I did some debugging and found that regmap_readable(), at regmap-
>> debugfs.c:109, returns "false" for all registers, hence the
>> debugfs_off_cache list remains empty and we get an warning in line
>151.
>
>We need to change that code to special case write only register maps
>like this and just skip having a cache for those devices. They
>normally
>have very small register maps anyway so it shouldn't have too big an
>impact on performance.

I'm having this issue with a wm8741 DAC, its register map is not "write only", it has readable and writeable registers.

--
Sergej
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/