<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/mtd, branch v2.6.32.48</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/mtd?h=v2.6.32.48</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/mtd?h=v2.6.32.48'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2011-06-23T22:24:01Z</updated>
<entry>
<title>mtd: mtdconcat: fix NAND OOB write</title>
<updated>2011-06-23T22:24:01Z</updated>
<author>
<name>Felix Radensky</name>
<email>felix@embedded-sol.com</email>
</author>
<published>2011-04-24T22:57:12Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d9296aeb3a664aec01e8f1aed649a09a8dea15e9'/>
<id>urn:sha1:d9296aeb3a664aec01e8f1aed649a09a8dea15e9</id>
<content type='text'>
commit 431e1ecabddcd7cbba237182ddf431771f98bb4c upstream.

Currently mtdconcat is broken for NAND. An attemtpt to create
JFFS2 filesystem on concatenation of several NAND devices fails
with OOB write errors. This patch fixes that problem.

Signed-off-by: Felix Radensky &lt;felix@embedded-sol.com&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>mtd: add "platform:" prefix for platform modalias</title>
<updated>2011-03-23T20:16:37Z</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@gmail.com</email>
</author>
<published>2011-03-07T03:04:24Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=59310870d3e8d138d2758e640041aad55bf90913'/>
<id>urn:sha1:59310870d3e8d138d2758e640041aad55bf90913</id>
<content type='text'>
commit c804c733846572ca85c2bba60c7fe6fa024dff18 upstream.

Since 43cc71eed1250755986da4c0f9898f9a635cb3bf (platform: prefix MODALIAS
with "platform:"), the platform modalias is prefixed with "platform:".

Signed-off-by: Axel Lin &lt;axel.lin@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;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>pxa3xx: fix ns2cycle equation</title>
<updated>2010-08-26T23:41:42Z</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@gmail.com</email>
</author>
<published>2010-08-16T08:09:09Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=dbd7e1896a800f717d334c6c0d1a2afca62bca86'/>
<id>urn:sha1:dbd7e1896a800f717d334c6c0d1a2afca62bca86</id>
<content type='text'>
commit 93b352fce679945845664b56b0c3afbd655a7a12 upstream.

Test on a PXA310 platform with Samsung K9F2G08X0B NAND flash,
with tCH=5 and clk is 156MHz, ns2cycle(5, 156000000) returns -1.

ns2cycle returns negtive value will break NDTR0_tXX macros.

After checking the commit log, I found the problem is introduced by
commit 5b0d4d7c8a67c5ba3d35e6ceb0c5530cc6846db7
"[MTD] [NAND] pxa3xx: convert from ns to clock ticks more accurately"

To get num of clock cycles, we use below equation:
num of clock cycles = time (ns) / one clock cycle (ns) + 1
We need to add 1 cycle here because integer division will truncate the result.
It is possible the developers set the Min values in SPEC for timing settings.
Thus the truncate may cause problem, and it is safe to add an extra cycle here.

The various fields in NDTR{01} are in units of clock ticks minus one,
thus we should subtract 1 cycle then.

Thus the correct equation should be:
num of clock cycles = time (ns) / one clock cycle (ns) + 1 - 1
                    = time (ns) / one clock cycle (ns)

Signed-off-by: Axel Lin &lt;axel.lin@gmail.com&gt;
Signed-off-by: Lei Wen &lt;leiwen@marvell.com&gt;
Acked-by: Eric Miao &lt;eric.y.miao@gmail.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>UBI: fix volume creation input checking</title>
<updated>2010-02-09T12:50:45Z</updated>
<author>
<name>Mika Westerberg</name>
<email>ext-mika.1.westerberg@nokia.com</email>
</author>
<published>2010-01-26T15:47:05Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=cfc7e54cd19cabdadf803be3d6a04d89f2663aa5'/>
<id>urn:sha1:cfc7e54cd19cabdadf803be3d6a04d89f2663aa5</id>
<content type='text'>
commit c5ce5b46af76f52dea21f467397d24c4ae6cb3ff upstream.

Do not use an unchecked variable UBI_IOCMKVOL ioctl.

Signed-off-by: Mika Westerberg &lt;ext-mika.1.westerberg@nokia.com&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>UBI: initialise update marker</title>
<updated>2010-01-28T23:02:34Z</updated>
<author>
<name>Peter Horton</name>
<email>zero@colonel-panic.org</email>
</author>
<published>2010-01-05T11:14:36Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=2cdc2dc3bdf8948ddf5a11d2907ac9d98d1c2794'/>
<id>urn:sha1:2cdc2dc3bdf8948ddf5a11d2907ac9d98d1c2794</id>
<content type='text'>
commit ff998793288b49a3b22d929bf8e56362320905ff upstream.

The in kernel copy of a volume's update marker is not initialised from the
volume table. This means that volumes where an update was unfinnished will
not be treated as "forbidden to use". This is basically that the update
functionality was broken.

Signed-off-by: Peter Horton &lt;zero@colonel-panic.org&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>UBI: fix memory leak in update path</title>
<updated>2010-01-28T23:02:31Z</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2010-01-18T14:43:44Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f6fbe0baa35fd65a4344a48ebc60c08f18a0fc20'/>
<id>urn:sha1:f6fbe0baa35fd65a4344a48ebc60c08f18a0fc20</id>
<content type='text'>
commit ebddd63b74dcf1cb676d14328d5852f1fee19a8a upstream.

When truncating an UBI volume, UBI should allocates a PEB-sized
buffer but does not release it, which leads to memory leaks.
This patch fixes the issue.

Reported-by: Marek Skuczynski &lt;mareksk7@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
Tested-by: Marek Skuczynski &lt;mareksk7@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>UBI: flush wl before clearing update marker</title>
<updated>2009-12-18T22:03:54Z</updated>
<author>
<name>Sebastian Andrzej Siewior</name>
<email>sebastian@breakpoint.cc</email>
</author>
<published>2009-11-29T18:46:02Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=943e167cb3e8fb191894bde8a4a75db78531a7c8'/>
<id>urn:sha1:943e167cb3e8fb191894bde8a4a75db78531a7c8</id>
<content type='text'>
commit 6afaf8a484cbbfd2ccf58a4e5396d1f280469789 upstream.

ubiupdatevol -t does the following:
- ubi_start_update()
  - set_update_marker()
  - for all LEBs ubi_eba_unmap_leb()
  - clear_update_marker()
  - ubi_wl_flush()

ubi_wl_flush() physically erases all PEB, once it returns all PEBs are
empty. clear_update_marker() has the update marker written after return.
If there is a power cut between the last two functions then the UBI
volume has no longer the "update" marker set and may have some valid
LEBs while some of them may be gone.
If that volume in question happens to be a UBIFS volume, then mount
will fail with

|UBIFS error (pid 1361): ubifs_read_node: bad node type (255 but expected 6)
|UBIFS error (pid 1361): ubifs_read_node: bad node at LEB 0:0
|Not a node, first 24 bytes:
|00000000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

if there is at least one valid LEB and the wear-leveling worker managed
to clear LEB 0.

The patch waits for the wl worker to finish prior clearing the "update"
marker on flash. The two new LEB which are scheduled for erasing after
clear_update_marker() should not matter because they are only visible to
UBI.

Signed-off-by: Sebastian Andrzej Siewior &lt;sebastian@breakpoint.cc&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>ARM: Fix warning in sa1100-flash.c</title>
<updated>2009-11-16T16:13:35Z</updated>
<author>
<name>Russell King</name>
<email>rmk+kernel@arm.linux.org.uk</email>
</author>
<published>2009-11-16T16:13:35Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=927585f650b51639f0262dad650eafeaf1611197'/>
<id>urn:sha1:927585f650b51639f0262dad650eafeaf1611197</id>
<content type='text'>
drivers/mtd/maps/sa1100-flash.c: In function 'sa1100_probe_subdev':
drivers/mtd/maps/sa1100-flash.c:214: warning: format '%d' expects type 'int', but argument 3 has type 'uint64_t'

Signed-off-by: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>mtd/maps: Fix accidental removal in Makefile</title>
<updated>2009-11-09T23:37:07Z</updated>
<author>
<name>Atsushi Nemoto</name>
<email>anemo@mba.ocn.ne.jp</email>
</author>
<published>2009-11-09T23:21:19Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=52cb0148ef2401dbffa4daf60588cad27e4f329d'/>
<id>urn:sha1:52cb0148ef2401dbffa4daf60588cad27e4f329d</id>
<content type='text'>
The commit d79c326 ("gpio-addr-flash: new driver for GPIO assisted
flash addressing") removed two lines from the Makefile by accident.
Though I'm not sure how this accident happened, this patch reverts the
removal.

Signed-off-by: Atsushi Nemoto &lt;anemo@mba.ocn.ne.jp&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>Merge git://git.infradead.org/users/dwmw2/mtd-2.6.32</title>
<updated>2009-11-05T21:23:16Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2009-11-05T21:23:16Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4397989fc91ed289909ecf307c2dc21cee0e7905'/>
<id>urn:sha1:4397989fc91ed289909ecf307c2dc21cee0e7905</id>
<content type='text'>
* git://git.infradead.org/users/dwmw2/mtd-2.6.32:
  mtd/maps: gpio-addr-flash: depend on GPIO arch support
  mtd/maps: gpio-addr-flash: pull in linux/ headers rather than asm/
  mtd: nand: fix htmldocs warnings
</content>
</entry>
</feed>
