<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/base/regmap/regmap-debugfs.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-16T15:33:36Z</updated>
<entry>
<title>regmap: debugfs: Fix seeking from the cache</title>
<updated>2013-01-16T15:33:36Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2013-01-16T15:33:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f32ca3db7f0b05a88edf37ccb00e262290a213e7'/>
<id>urn:sha1:f32ca3db7f0b05a88edf37ccb00e262290a213e7</id>
<content type='text'>
We don't want to bomb out early if we failed to get the cache any more,
just soldier on instead and we won't get confused and always return the
first block.

Reported-by: Philipp Zabel &lt;p.zabel@pengutronix.de
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: debugfs: Make sure we store the last entry in the offset cache</title>
<updated>2013-01-08T20:52:51Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2013-01-08T18:47:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e8d6539c8a94b88fc7ca5d6bdd9eeb0e64b434e4'/>
<id>urn:sha1:e8d6539c8a94b88fc7ca5d6bdd9eeb0e64b434e4</id>
<content type='text'>
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: debugfs: Ensure a correct return value for empty caches</title>
<updated>2013-01-08T20:52:49Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2013-01-08T13:44:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5bd9f4bb34c16b62725b9486a290c01b1fdfec1c'/>
<id>urn:sha1:5bd9f4bb34c16b62725b9486a290c01b1fdfec1c</id>
<content type='text'>
This should never happen in the real world.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: debugfs: Discard the cache if we fail to allocate an entry</title>
<updated>2013-01-08T20:52:46Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2013-01-08T13:35:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=95f971c745a343255744703dc4ae8d78508519cc'/>
<id>urn:sha1:95f971c745a343255744703dc4ae8d78508519cc</id>
<content type='text'>
Rather than trying to soldier on with a partially allocated cache just
throw the cache away and pretend we don't have one in case we can get a
full cache next time around.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: debugfs: Fix check for block start in cached seeks</title>
<updated>2013-01-08T20:52:45Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2013-01-08T20:40:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5a1d6d172bc8a3ecf29add6c84d047025cb71566'/>
<id>urn:sha1:5a1d6d172bc8a3ecf29add6c84d047025cb71566</id>
<content type='text'>
Check for the block we were asked to start from, not the position we're
in.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: debugfs: Fix attempts to read nonexistant register blocks</title>
<updated>2013-01-08T20:52:45Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2013-01-02T15:32:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=120f80518125b8c312007a54106759d608487553'/>
<id>urn:sha1:120f80518125b8c312007a54106759d608487553</id>
<content type='text'>
Return the start of the last block we tried to read rather than a position,
and also make sure we update the byte position while we're at it.  Without
this reads that go into nonexistant areas get confused.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: debugfs: Cache offsets of valid regions for dump</title>
<updated>2012-12-10T16:29:47Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2012-12-10T16:24:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5166b7c006eeb4f6becc0822974d8da259484ba1'/>
<id>urn:sha1:5166b7c006eeb4f6becc0822974d8da259484ba1</id>
<content type='text'>
Avoid doing a linear scan of the entire register map for each read() of
the debugfs register dump by recording the offsets where valid registers
exist when we first read the registers file. This assumes the set of
valid registers never changes, if this is not the case invalidation of
the cache will be required.

This could be further improved for large blocks of contiguous registers
by calculating the register we will read from within the block - currently
we do a linear scan of the block. An rbtree may also be worthwhile.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: debugfs: Factor out initial seek</title>
<updated>2012-12-10T16:29:47Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2012-12-09T08:20:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=afab2f7b21b042bcbffb1e82f78243382a122d70'/>
<id>urn:sha1:afab2f7b21b042bcbffb1e82f78243382a122d70</id>
<content type='text'>
In preparation for doing things a bit more quickly than a linear scan
factor out the initial seek from the debugfs register dump.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regmap: debugfs: Avoid overflows for very small reads</title>
<updated>2012-12-10T16:29:39Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2012-12-10T16:14:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=db04328c167ff8e7c57f4a3532214aeada3a82fd'/>
<id>urn:sha1:db04328c167ff8e7c57f4a3532214aeada3a82fd</id>
<content type='text'>
If count is less than the size of a register then we may hit integer
wraparound when trying to move backwards to check if we're still in
the buffer. Instead move the position forwards to check if it's still
in the buffer, we are unlikely to be able to allocate a buffer
sufficiently big to overflow here.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Cc: stable@vger.kernel.org
</content>
</entry>
<entry>
<title>regmap: Cache register and value sizes for debugfs</title>
<updated>2012-12-06T06:10:21Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2012-12-06T04:29:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=cbc1938badc31f43ab77e92a9b1a51c4fe8b4113'/>
<id>urn:sha1:cbc1938badc31f43ab77e92a9b1a51c4fe8b4113</id>
<content type='text'>
No point in calculating them every time.

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