<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/base/regmap/regmap.c, branch v3.8</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.8</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v3.8'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2013-01-22T08:24:12Z</updated>
<entry>
<title>regmap: fix small typo in regmap_bulk_write comment</title>
<updated>2013-01-22T08:24:12Z</updated>
<author>
<name>Nestor Ovroy</name>
<email>novroy@riseup.net</email>
</author>
<published>2013-01-18T15:51:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=31b35e9edd51cab96d880248206c90b7177e3e5c'/>
<id>urn:sha1:31b35e9edd51cab96d880248206c90b7177e3e5c</id>
<content type='text'>
Signed-off-by: Nestor Ovroy &lt;novroy@riseup.net&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'regmap/topic/type' into regmap-next</title>
<updated>2012-12-11T03:39:49Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2012-12-11T03:39:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7c8a2994309214cbb6dba33cd72ec85f91fd6fcd'/>
<id>urn:sha1:7c8a2994309214cbb6dba33cd72ec85f91fd6fcd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>regmap: introduce tables for readable/writeable/volatile/precious checks</title>
<updated>2012-11-21T02:10:31Z</updated>
<author>
<name>Davide Ciminaghi</name>
<email>ciminaghi@gnudd.com</email>
</author>
<published>2012-11-20T14:20:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=76aad392f75e6ce5be3f106554e16f7ff96543e5'/>
<id>urn:sha1:76aad392f75e6ce5be3f106554e16f7ff96543e5</id>
<content type='text'>
Many of the regmap enabled drivers implementing one or more of the
readable, writeable, volatile and precious methods use the same code
pattern:

	return ((reg &gt;= X &amp;&amp; reg &lt;= Y) || (reg &gt;= W &amp;&amp; reg &lt;= Z) || ...)

Switch to a data driven approach, using tables to describe
readable/writeable/volatile and precious registers ranges instead.
The table based check can still be overridden by passing the usual function
pointers via struct regmap_config.

Signed-off-by: Davide Ciminaghi &lt;ciminaghi@gnudd.com&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'topic/lock' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap into regmap-table</title>
<updated>2012-11-21T02:09:46Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2012-11-21T02:09:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=3afa24f7ad0a1ab5478f1e9a6c4df1acf52171d1'/>
<id>urn:sha1:3afa24f7ad0a1ab5478f1e9a6c4df1acf52171d1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branches 'topic/core' and 'topic/range' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap into regmap-table</title>
<updated>2012-11-21T02:08:31Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2012-11-21T02:08:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=869e4a5f5848f6308cc5651d4bdc3e545d676b98'/>
<id>urn:sha1:869e4a5f5848f6308cc5651d4bdc3e545d676b98</id>
<content type='text'>
</content>
</entry>
<entry>
<title>regmap: core: Report registers in hex when we can't cache</title>
<updated>2012-10-30T13:37:26Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2012-10-26T18:05:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6d04b8ac575c38d94515b4e8f3b800c5c61ef611'/>
<id>urn:sha1:6d04b8ac575c38d94515b4e8f3b800c5c61ef611</id>
<content type='text'>
This seems to be the most common way of reporting register numbers, it's
certainly what we do for trace.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: Fix printing of size_t variable</title>
<updated>2012-10-25T17:55:11Z</updated>
<author>
<name>Fabio Estevam</name>
<email>fabio.estevam@freescale.com</email>
</author>
<published>2012-10-25T16:07:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1a61cfe3445218637f38b355c76fc3132865a0a6'/>
<id>urn:sha1:1a61cfe3445218637f38b355c76fc3132865a0a6</id>
<content type='text'>
val_bytes is of 'size_t', so it should be printed as '%zu'.

Fixes the following build warning on x86:

drivers/base/regmap/regmap.c:872:4: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t' [-Wformat]

Signed-off-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: make lock/unlock functions customizable</title>
<updated>2012-10-17T07:52:02Z</updated>
<author>
<name>Davide Ciminaghi</name>
<email>ciminaghi@gnudd.com</email>
</author>
<published>2012-10-16T13:56:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0d4529c534c1c664f25088eb5f5b4d7ce0ee2510'/>
<id>urn:sha1:0d4529c534c1c664f25088eb5f5b4d7ce0ee2510</id>
<content type='text'>
It is sometimes convenient for a regmap user to override the standard
regmap lock/unlock functions with custom functions.
For instance this can be useful in case an already existing spinlock
or mutex has to be used for locking a set of registers instead of the
internal regmap spinlock/mutex.
Note that the fast_io field of struct regmap_bus is ignored in case
custom locking functions are used.

Signed-off-by: Davide Ciminaghi &lt;ciminaghi@gnudd.com&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: silence GCC warning</title>
<updated>2012-10-15T01:03:19Z</updated>
<author>
<name>Paul Bolle</name>
<email>pebolle@tiscali.nl</email>
</author>
<published>2012-10-08T20:06:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a8f28cfad8cd44d7c34b166d0e5ace1125dbee1f'/>
<id>urn:sha1:a8f28cfad8cd44d7c34b166d0e5ace1125dbee1f</id>
<content type='text'>
Building regmap.o triggers this GCC warning:
    drivers/base/regmap/regmap.c: In function ‘regmap_raw_read’:
    drivers/base/regmap/regmap.c:1172:6: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized]

Long story short: Jakub Jelinek pointed out that there is a type
mismatch between 'num' in regmap_volatile_range() and 'val_count' in
regmap_raw_read(). And indeed, converting 'num' to the type of
'val_count' (ie, size_t) makes this warning go away.

Signed-off-by: Paul Bolle &lt;pebolle@tiscali.nl&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: Split raw writes that cross window boundaries</title>
<updated>2012-10-15T01:00:00Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2012-10-04T17:20:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=8a2ceac6617a67d8a1ee4bd255743d577bde311a'/>
<id>urn:sha1:8a2ceac6617a67d8a1ee4bd255743d577bde311a</id>
<content type='text'>
If a block write covers a paged memory region and crosses a window
boundary then rather than failing the write split the transfer up
into multiple writes, making the whole process more transparent for
drivers.

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