* Current state of regmap.
@ 2011-09-05 14:14 Jonathan Cameron
2011-09-05 15:13 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Cameron @ 2011-09-05 14:14 UTC (permalink / raw)
To: Mark Brown; +Cc: LKML
Hi Mark,
As my previous email said I've been messing around with regmap today.
I've run into a couple of bugs and was wondering if I'm running
behind the current version. I've pulled what is up on kernel.org
for linux-next at the moment.
As I'm emailing anyway. Everywhere other than regmap-debugfs max_register
is treated as the max valid. In there we have a loop that is
for (i = 0; i < map->max_register; i++) so that treats it as one
larger than the max valid register index.
Thanks,
Jonathan.
p.s. Nice work by the way.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Current state of regmap.
2011-09-05 14:14 Current state of regmap Jonathan Cameron
@ 2011-09-05 15:13 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2011-09-05 15:13 UTC (permalink / raw)
To: Jonathan Cameron; +Cc: LKML
On Mon, Sep 05, 2011 at 03:14:14PM +0100, Jonathan Cameron wrote:
> As my previous email said I've been messing around with regmap today.
> I've run into a couple of bugs and was wondering if I'm running
> behind the current version. I've pulled what is up on kernel.org
> for linux-next at the moment.
That's the current state, I'm running development systems here where all
the I2C and SPI devices on the system go through regmap and anyone
running ASoC will be using it. Though there's a few patches floating
around now and I'm just testing the module_put() fix so it'll not be the
current state soonish. kernel.org is closed for updates right now, if I
do much i'll probably show up on opensource.wolfsonmicro.com in the
short term.
> As I'm emailing anyway. Everywhere other than regmap-debugfs max_register
> is treated as the max valid. In there we have a loop that is
> for (i = 0; i < map->max_register; i++) so that treats it as one
> larger than the max valid register index.
That's an off by one in the debugfs code, will fix. You can check this
sort of stuff out by looking at the users.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-05 15:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-05 14:14 Current state of regmap Jonathan Cameron
2011-09-05 15:13 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox