<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/base/regmap, branch v3.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v3.3</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v3.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2012-02-15T16:31:32Z</updated>
<entry>
<title>regmap: Fix cache defaults initialization from raw cache defaults</title>
<updated>2012-02-15T16:31:32Z</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2012-02-15T09:23:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=61cddc57dc14a5dffa0921d9a24fd68edbb374ac'/>
<id>urn:sha1:61cddc57dc14a5dffa0921d9a24fd68edbb374ac</id>
<content type='text'>
Currently registers with a value of 0 are ignored when initializing the register
defaults from raw defaults. This worked in the past, because registers without a
explicit default were assumed to have a default value of 0. This was changed in
commit b03622a8 ("regmap: Ensure rbtree syncs registers set to zero properly").
As a result registers, which have a raw default value of 0 are now assumed to
have no default. This again can result in unnecessary writes when syncing the
cache. It will also result in unnecessary reads for e.g. the first update
operation. In the case where readback is not possible this will even let the
update operation fail, if the register has not been written to before.

So this patch removes the check. Instead it adds a check to ignore raw defaults
for registers which are volatile, since those registers are not cached.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Cc: stable@vger.kernel.org
</content>
</entry>
<entry>
<title>regmap: Reset cache status when reinitialsing the cache</title>
<updated>2012-01-20T13:49:30Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2012-01-20T13:39:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=421e8d2de3bd8b089dc6322d8589b7eb38437a23'/>
<id>urn:sha1:421e8d2de3bd8b089dc6322d8589b7eb38437a23</id>
<content type='text'>
When we reinitialise the cache make sure that we reset the cache access
flags, ensuring that the reinitialised cache is in the default state
which is what callers would and do expect given the function name.

This is particularly likely to cause issues in systems where there was no
cache previously as those systems have cache bypass enabled, as for the
wm8994 driver where this was noticed.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'regmap/irq' into regmap-next</title>
<updated>2011-12-05T16:21:05Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2011-12-05T16:21:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=681ba97d9fbff59f67c71f1d9a88ad0b8ef49d25'/>
<id>urn:sha1:681ba97d9fbff59f67c71f1d9a88ad0b8ef49d25</id>
<content type='text'>
</content>
</entry>
<entry>
<title>regmap: Add irq_base accessor to regmap_irq</title>
<updated>2011-12-05T16:13:31Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2011-12-05T16:10:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=209a600623cf13a8168b2f6b83643db7825abb9a'/>
<id>urn:sha1:209a600623cf13a8168b2f6b83643db7825abb9a</id>
<content type='text'>
Allows devices to discover their own interrupt without having to remember
it themselves.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'topic/cache' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap into regmap-next</title>
<updated>2011-12-05T13:18:50Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2011-12-05T13:18:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=8569d023a0db699c462337d471f7e92163142e37'/>
<id>urn:sha1:8569d023a0db699c462337d471f7e92163142e37</id>
<content type='text'>
</content>
</entry>
<entry>
<title>regmap: Allow drivers to reinitialise the register cache at runtime</title>
<updated>2011-12-05T13:17:36Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2011-12-03T17:06:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=bf315173359b2f3b8b8ccca4264815e91f30be12'/>
<id>urn:sha1:bf315173359b2f3b8b8ccca4264815e91f30be12</id>
<content type='text'>
Sometimes the register map information may change in ways that drivers can
discover at runtime. For example, new revisions of a device may add new
registers. Support runtime discovery by drivers by allowing the register
cache to be reinitialised with a new function regmap_reinit_cache() which
discards the existing cache and creates a new one.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: Add trace event for successful cache reads</title>
<updated>2011-11-30T20:51:09Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2011-11-30T14:27:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=bc7ee55633867909bb05e71f957a4d3c1aa1b488'/>
<id>urn:sha1:bc7ee55633867909bb05e71f957a4d3c1aa1b488</id>
<content type='text'>
Currently we only trace physical reads, there's no instrumentation if
the read is satisfied from cache.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: Allow regmap_update_bits() users to detect changes</title>
<updated>2011-11-29T20:15:50Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2011-11-29T20:10:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=018690d33ecf4aa1eb1415e38c40e2b0b6c7808e'/>
<id>urn:sha1:018690d33ecf4aa1eb1415e38c40e2b0b6c7808e</id>
<content type='text'>
Some users of regmap_update_bits() would like to be able to tell their
users if they actually did an update so provide a variant which also
returns a flag indicating if an update took place. We could return a
tristate in the return value of regmap_update_bits() but this makes the
API more cumbersome to use and doesn't fit with the general zero for
success idiom we have.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'regmap/topic/irq' into regmap-next</title>
<updated>2011-11-28T18:52:24Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2011-11-28T18:52:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c86845dc7b56be050b9e53b31079e8bd0a3dc279'/>
<id>urn:sha1:c86845dc7b56be050b9e53b31079e8bd0a3dc279</id>
<content type='text'>
</content>
</entry>
<entry>
<title>regmap: Report if we actually handled an interrupt in regmap-irq</title>
<updated>2011-11-28T18:51:57Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2011-11-28T18:50:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d23511f9590870effa5ace575b59aac18c47175f'/>
<id>urn:sha1:d23511f9590870effa5ace575b59aac18c47175f</id>
<content type='text'>
While the IRQ core doesn't currently support shared threaded interrupts
that's no reason for drivers not to do their bit and report IRQ_NONE when
they don't get an interrupt. This allows the core spurious/wedget interrupt
detection support to do its thing.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
</feed>
