<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/mtd/mtdcore.c, branch linux-3.2.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.2.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.2.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2011-09-11T12:02:18Z</updated>
<entry>
<title>mtd: check parts pointer before using it</title>
<updated>2011-09-11T12:02:18Z</updated>
<author>
<name>Jason Liu</name>
</author>
<published>2011-08-24T11:26:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4d523b60ef9d1953d9e12745ca0ed3e2dc98c189'/>
<id>urn:sha1:4d523b60ef9d1953d9e12745ca0ed3e2dc98c189</id>
<content type='text'>
The code has the check for parts but it called after kmemdup,
kmemdup(parts, sizeof(*parts) * nr_parts,...)
if (!parts)
	return -ENOMEM

In fact, we need check parts before safely using it.
and we also need check the real_parts to make sure kmemdup
allocation sucessfully.

Signed-off-by: Jason Liu &lt;jason.hui@linaro.org&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: spelling fixes</title>
<updated>2011-09-11T12:02:16Z</updated>
<author>
<name>Brian Norris</name>
</author>
<published>2011-07-20T16:53:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=92394b5c2be774425f255b5c7afbd8b19978fe12'/>
<id>urn:sha1:92394b5c2be774425f255b5c7afbd8b19978fe12</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>
<entry>
<title>mtd: replace DEBUG() with pr_debug()</title>
<updated>2011-09-11T12:02:16Z</updated>
<author>
<name>Brian Norris</name>
</author>
<published>2011-07-19T17:06:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=289c05222172b51401dbbb017115655f241d94ab'/>
<id>urn:sha1:289c05222172b51401dbbb017115655f241d94ab</id>
<content type='text'>
Start moving away from the MTD_DEBUG_LEVEL messages. The dynamic
debugging feature is a generic kernel feature that provides more
flexibility.

(See Documentation/dynamic-debug-howto.txt)

Also fix some punctuation, indentation, and capitalization that went
along with the affected lines.

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: drop mtd_device_register</title>
<updated>2011-09-11T12:02:13Z</updated>
<author>
<name>Dmitry Eremin-Solenikov</name>
</author>
<published>2011-06-23T11:33:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=15c60a508ab3393e68b7ccb3528981ccacf9c0f9'/>
<id>urn:sha1:15c60a508ab3393e68b7ccb3528981ccacf9c0f9</id>
<content type='text'>
mtd_device_register() is a limited version of mtd_device_parse_register.
Replace it with macro calling mtd_device_parse_register().

Signed-off-by: Dmitry Eremin-Solenikov &lt;dbaryshkov@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>mtd: abstract last MTD partition parser argument</title>
<updated>2011-09-11T12:02:10Z</updated>
<author>
<name>Dmitry Eremin-Solenikov</name>
</author>
<published>2011-06-10T14:18:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c7975330154af17aecc167b33ca866b6b3d98918'/>
<id>urn:sha1:c7975330154af17aecc167b33ca866b6b3d98918</id>
<content type='text'>
Encapsulate last MTD partition parser argument into a separate
structure. Currently it holds only 'origin' field for RedBoot parser,
but will be extended in future to contain at least device_node for OF
devices.

Amended commentary to make kerneldoc happy

Signed-off-by: Dmitry Eremin-Solenikov &lt;dbaryshkov@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;dedekind1@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: add new API for handling MTD registration</title>
<updated>2011-09-11T12:02:05Z</updated>
<author>
<name>Dmitry Eremin-Solenikov</name>
</author>
<published>2011-03-25T19:26:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1c4c215cbdcbfd08183d82b2953591cd00564422'/>
<id>urn:sha1:1c4c215cbdcbfd08183d82b2953591cd00564422</id>
<content type='text'>
Lots (nearly all) mtd drivers contain nearly the similar code that
calls parse_mtd_partitions, provides some platform-default values, if
parsing fails, and registers  mtd device.

This is an aim to provide single implementation of this scenario:
mtd_device_parse_register() which will handle all this parsing and
defaults.

Artem: amended comments

Signed-off-by: Dmitry Eremin-Solenikov &lt;dbaryshkov@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>mtd: remove add_mtd_partitions, add_mtd_device and friends</title>
<updated>2011-05-25T01:25:16Z</updated>
<author>
<name>Jamie Iles</name>
</author>
<published>2011-05-23T09:23:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eea72d5fdf59879edb2c6639b0b7cc385e0df646'/>
<id>urn:sha1:eea72d5fdf59879edb2c6639b0b7cc385e0df646</id>
<content type='text'>
These symbols are replaced with mtd_device_register() (and removal with
mtd_device_unregister()) for public registration.

Signed-off-by: Jamie Iles &lt;jamie@jamieiles.com&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: introduce mtd_device_(un)register()</title>
<updated>2011-05-25T01:12:36Z</updated>
<author>
<name>Jamie Iles</name>
</author>
<published>2011-05-23T16:15:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f5671ab3f67a10f7234de21464391c20c1ef8ebb'/>
<id>urn:sha1:f5671ab3f67a10f7234de21464391c20c1ef8ebb</id>
<content type='text'>
To prepare for the removal of add_mtd_device and add_mtd_partitions(),
introduce mtd_device_register().  This will create partitions if they
are supplied or register the whole device if there are no partitions.

Once all drivers are converted to use mtd_device_register(),
add_mtd_device() and add_mtd_partitions() will be made internal only.

v2: move kerneldoc to implementation file and fixup some kerneldoc
warnings.

Artem: tweak comments: remove junk tabs, use dots consistently.

Signed-off-by: Jamie Iles &lt;jamie@jamieiles.com&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>mtd:fix the bad format in the mtdcore.c</title>
<updated>2011-05-25T01:11:56Z</updated>
<author>
<name>Wanlong Gao</name>
</author>
<published>2011-05-20T13:14:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d5ca51292d899a19882cb9bf8f64079209e688fe'/>
<id>urn:sha1:d5ca51292d899a19882cb9bf8f64079209e688fe</id>
<content type='text'>
Remove the spare spaces in the head of the lines.

Signed-off-by: Wanlong Gao &lt;wanlong.gao@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: simplify get_mtd_device_nm function</title>
<updated>2011-05-25T01:05:49Z</updated>
<author>
<name>Wanlong Gao</name>
</author>
<published>2011-05-17T14:36:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=52534f2dba5d033c0c33e515faa2767d7e8e986a'/>
<id>urn:sha1:52534f2dba5d033c0c33e515faa2767d7e8e986a</id>
<content type='text'>
'get_mtd_device_nm()' has a piece of code which equivalent to what
'__get_mtd_device()' does - remove this duplicated code and use
''__get_mtd_device()' instead.

Artem: changed commit message.
Artem: while on it, remove an unnecessary extra empty line

Signed-off-by: Wanlong Gao &lt;wanlong.gao@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
</feed>
