<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/base/regmap/regcache.c, branch v3.2-rc2</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.2-rc2</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v3.2-rc2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2011-10-31T23:31:38Z</updated>
<entry>
<title>drivers/base: Add export.h for EXPORT_SYMBOL/THIS_MODULE as required.</title>
<updated>2011-10-31T23:31:38Z</updated>
<author>
<name>Paul Gortmaker</name>
<email>paul.gortmaker@windriver.com</email>
</author>
<published>2011-05-27T11:12:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1b6bc32f0a7380102499deb6aa99a59e789efb33'/>
<id>urn:sha1:1b6bc32f0a7380102499deb6aa99a59e789efb33</id>
<content type='text'>
Most of these files were implicitly getting EXPORT_SYMBOL via
device.h which was including module.h, but that path will be broken
soon.

[ with input from Stephen Rothwell &lt;sfr@canb.auug.org.au&gt; ]

Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</content>
</entry>
<entry>
<title>regmap: Allow caches for devices with no defaults</title>
<updated>2011-10-10T10:55:32Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2011-10-09T12:13:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=8528bdd450d34687b380c0f87992d105bdf54ca3'/>
<id>urn:sha1:8528bdd450d34687b380c0f87992d105bdf54ca3</id>
<content type='text'>
We only really need the defaults in order to cut down the number of
registers we sync and to satisfy reads while the device is powered off
but not all devices are going to need to do that (always on devices like
PMICs being the prime example) so don't require those devices to supply
a default.  Instead only try to fall back to hardware defaults if the
driver told us to.

Devices using LZO won't be able to instantiate with this, that will require
some updates in the LZO code to handle this case.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Acked-by: Dimitris Papastamos &lt;dp@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: Return a sensible error code if we fail to read the cache</title>
<updated>2011-10-10T09:24:03Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2011-10-09T12:23:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6e6ace00a045251bd172b9b9c2379857bbff3dc7'/>
<id>urn:sha1:6e6ace00a045251bd172b9b9c2379857bbff3dc7</id>
<content type='text'>
If a register isn't cached then let callers know that so they can fall
back or error handle appropriately.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Acked-by: Dimitris Papastamos &lt;dp@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: Use bsearch() to search the register defaults</title>
<updated>2011-10-09T11:36:56Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2011-10-04T21:05:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f094fea68f0575286c55c06141cc89ffd0049024'/>
<id>urn:sha1:f094fea68f0575286c55c06141cc89ffd0049024</id>
<content type='text'>
Rather than open coding a binary search use the standard bsearch() using
the comparison function we're already using for sort() on insert. This
fixes a lockup I was observing due to iterating on min &lt;= max rather
than min &lt; max when we fail to look up.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Acked-by: Dimitris Papastamos &lt;dp@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: Fix doc comment</title>
<updated>2011-10-03T10:50:53Z</updated>
<author>
<name>Dimitris Papastamos</name>
<email>dp@opensource.wolfsonmicro.com</email>
</author>
<published>2011-10-03T05:54:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0eef6b0415f58ed16aff95af8c92514ce5c01258'/>
<id>urn:sha1:0eef6b0415f58ed16aff95af8c92514ce5c01258</id>
<content type='text'>
Signed-off-by: Dimitris Papastamos &lt;dp@opensource.wolfsonmicro.com&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: Optimize the lookup path to use binary search</title>
<updated>2011-10-03T10:50:53Z</updated>
<author>
<name>Dimitris Papastamos</name>
<email>dp@opensource.wolfsonmicro.com</email>
</author>
<published>2011-10-03T09:50:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c08604b8ae72b4fa1843a76fc7b403ddec49f8f4'/>
<id>urn:sha1:c08604b8ae72b4fa1843a76fc7b403ddec49f8f4</id>
<content type='text'>
Since there are more lookups than insertions in a typical
scenario, optimize the linear search into a binary search.  For
this to work, we need to keep reg_defaults sorted upon
insertions, for now be lazy and use sort().

Signed-off-by: Dimitris Papastamos &lt;dp@opensource.wolfsonmicro.com&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: Ensure we scream if we enable cache bypass/only at the same time</title>
<updated>2011-09-30T12:57:47Z</updated>
<author>
<name>Dimitris Papastamos</name>
<email>dp@opensource.wolfsonmicro.com</email>
</author>
<published>2011-09-29T13:36:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ac77a765cb6e3b5aa41c186ad9f37db7fdad7dbe'/>
<id>urn:sha1:ac77a765cb6e3b5aa41c186ad9f37db7fdad7dbe</id>
<content type='text'>
Signed-off-by: Dimitris Papastamos &lt;dp@opensource.wolfsonmicro.com&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: Implement regcache_cache_bypass helper function</title>
<updated>2011-09-30T12:57:47Z</updated>
<author>
<name>Dimitris Papastamos</name>
<email>dp@opensource.wolfsonmicro.com</email>
</author>
<published>2011-09-29T13:36:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6eb0f5e0154facfe4f0acdb9f474cde773319efc'/>
<id>urn:sha1:6eb0f5e0154facfe4f0acdb9f474cde773319efc</id>
<content type='text'>
Ensure we've got a function so users can enable/disable the
cache bypass option.

Signed-off-by: Dimitris Papastamos &lt;dp@opensource.wolfsonmicro.com&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: Save/restore the bypass state upon syncing</title>
<updated>2011-09-30T12:57:47Z</updated>
<author>
<name>Dimitris Papastamos</name>
<email>dp@opensource.wolfsonmicro.com</email>
</author>
<published>2011-09-29T13:36:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=beb1a10f219ce720c13168203bd5ebe4ce7879e0'/>
<id>urn:sha1:beb1a10f219ce720c13168203bd5ebe4ce7879e0</id>
<content type='text'>
Signed-off-by: Dimitris Papastamos &lt;dp@opensource.wolfsonmicro.com&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: Lock the sync path, ensure we use the lockless _regmap_write()</title>
<updated>2011-09-30T12:57:47Z</updated>
<author>
<name>Dimitris Papastamos</name>
<email>dp@opensource.wolfsonmicro.com</email>
</author>
<published>2011-09-29T13:36:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=13753a9088af23c61e2f5c10a8f3ea136d8ebab5'/>
<id>urn:sha1:13753a9088af23c61e2f5c10a8f3ea136d8ebab5</id>
<content type='text'>
Signed-off-by: Dimitris Papastamos &lt;dp@opensource.wolfsonmicro.com&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
</feed>
