<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/mtd/tests/mtd_readtest.c, branch linux-3.8.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.8.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.8.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2012-12-04T14:00:34Z</updated>
<entry>
<title>mtd: tests/read: initialize buffer for whole next page</title>
<updated>2012-12-04T14:00:34Z</updated>
<author>
<name>Christian Herzig</name>
</author>
<published>2012-11-23T14:31:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d8b1e34e248d89f43bab18704894d537dc0b497e'/>
<id>urn:sha1:d8b1e34e248d89f43bab18704894d537dc0b497e</id>
<content type='text'>
fix: do block-buffer initialize for the whole next page to zero.

Signed-off-by: Christian Herzig &lt;christian.herzig@keymile.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: Fix typo mtd/tests</title>
<updated>2012-11-18T14:03:37Z</updated>
<author>
<name>Masanari Iida</name>
</author>
<published>2012-11-09T14:20:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=064a7694b5347208febeb7aba7c90d38934ec8a1'/>
<id>urn:sha1:064a7694b5347208febeb7aba7c90d38934ec8a1</id>
<content type='text'>
Correct spelling typo in printk within drivers/mtd/tests.

Signed-off-by: Masanari Iida &lt;standby24x7@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: tests: mtd_readtest: Replace printk with pr_{info,err}</title>
<updated>2012-11-15T13:37:49Z</updated>
<author>
<name>Vikram Narayanan</name>
</author>
<published>2012-10-10T17:38:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e45048a6a232de1dc6978f2f4df6369beafa79c0'/>
<id>urn:sha1:e45048a6a232de1dc6978f2f4df6369beafa79c0</id>
<content type='text'>
Use pr_fmt instead of PRINT_PREF macro

Signed-off-by: Vikram Narayanan &lt;vikram186@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: introduce mtd_can_have_bb helper</title>
<updated>2012-01-09T18:26:24Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2012-01-02T11:48:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8f461a730242c528ca221948edceca49266a3ffb'/>
<id>urn:sha1:8f461a730242c528ca221948edceca49266a3ffb</id>
<content type='text'>
This patch introduces new 'mtd_can_have_bb()' helper function which checks
whether the flash can have bad eraseblocks. Then it changes all the
direct 'mtd-&gt;block_isbad' use cases with 'mtd_can_have_bb()'.

Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: remove extra retlen assignment</title>
<updated>2012-01-09T18:25:56Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2011-12-29T13:16:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=30fa98480b782999248ce8290136aa58f22536cf'/>
<id>urn:sha1:30fa98480b782999248ce8290136aa58f22536cf</id>
<content type='text'>
MTD functions always assign the 'retlen' argument to 0 at the very
beginning - the callers do not have to do this.

I used the following semantic patch to find these places:

@@
identifier retlen;
expression a, b, c, d, e;
constant C;
type T;
@@
(
- retlen = C;
|
T
-retlen = C
+ retlen
;
)

... when != retlen
    when exists

(
mtd_read(a, b, c, &amp;retlen, d)
|
mtd_write(a, b, c, &amp;retlen, d)
|
mtd_panic_write(a, b, c, &amp;retlen, d)
|
mtd_point(a, b, c, &amp;retlen, d, e)
|
mtd_read_fact_prot_reg(a, b, c, &amp;retlen, d)
|
mtd_write_user_prot_reg(a, b, c, &amp;retlen, d)
|
mtd_read_user_prot_reg(a, b, c, &amp;retlen, d)
|
mtd_writev(a, b, c, d, &amp;retlen)
)

I ran it twice, because there were cases of double zero assigments
in mtd tests. Then I went through the patch to verify that spatch
did not find any false positives.

Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: introduce mtd_block_isbad interface</title>
<updated>2012-01-09T18:25:47Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2011-12-23T17:35:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7086c19d07429d697057587caf1e5e0345442d16'/>
<id>urn:sha1:7086c19d07429d697057587caf1e5e0345442d16</id>
<content type='text'>
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: introduce mtd_read_oob interface</title>
<updated>2012-01-09T18:25:23Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2011-12-23T16:27:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fd2819bbc92fc98bed5d612e4acbe16b6326f6bf'/>
<id>urn:sha1:fd2819bbc92fc98bed5d612e4acbe16b6326f6bf</id>
<content type='text'>
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: introduce mtd_read interface</title>
<updated>2012-01-09T18:25:19Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2011-12-23T15:30:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=329ad399a9b3adf52c90637b21ca029fcf7f8795'/>
<id>urn:sha1:329ad399a9b3adf52c90637b21ca029fcf7f8795</id>
<content type='text'>
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: tests: don't use mtd0 as a default</title>
<updated>2011-10-30T12:31:04Z</updated>
<author>
<name>Wolfram Sang</name>
</author>
<published>2011-10-29T22:11:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7406060e292c389fe6f38bd23493de9b57f2f4fc'/>
<id>urn:sha1:7406060e292c389fe6f38bd23493de9b57f2f4fc</id>
<content type='text'>
mtd tests may erase the mtd device, so force the user to specify which
mtd device to test by using the module parameter. Disable the default
(using mtd0) since this may destroy a vital part of the flash if the
module is inserted accidently or carelessly.

Reported-by: Roland Kletzing &lt;devzero@web.de&gt;
Signed-off-by: Wolfram Sang &lt;w.sang@pengutronix.de&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: utilize `mtd_is_*()' functions</title>
<updated>2011-09-21T06:19:06Z</updated>
<author>
<name>Brian Norris</name>
</author>
<published>2011-09-21T01:34:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d57f40544a41fdfe90fd863b6865138c5a82f1cc'/>
<id>urn:sha1:d57f40544a41fdfe90fd863b6865138c5a82f1cc</id>
<content type='text'>
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@intel.com&gt;
</content>
</entry>
</feed>
