<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/git/stable/linux.git/drivers/mtd/chips, branch linux-2.6.24.y</title>
<subtitle>Linux kernel stable tree</subtitle>
<id>https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/atom?h=linux-2.6.24.y</id>
<link rel='self' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/atom?h=linux-2.6.24.y'/>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/'/>
<updated>2008-04-19T01:53:23+00:00</updated>
<entry>
<title>mtd: fix broken state in CFI driver caused by FL_SHUTDOWN</title>
<updated>2008-04-19T01:53:23+00:00</updated>
<author>
<name>Alexey Korolev</name>
<email>akorolev@infradead.org</email>
</author>
<published>2008-04-04T22:15:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=81f368b55356732412d1737b7da90c4a7d7d11a2'/>
<id>urn:sha1:81f368b55356732412d1737b7da90c4a7d7d11a2</id>
<content type='text'>
upstream commit: fb6d080c6f75dfd7e23d5a3575334785aa8738eb

THe CFI driver in 2.6.24 kernel is broken.  Not so intensive read/write
operations cause incomplete writes which lead to kernel panics in JFFS2.

We investigated the issue - it is caused by bug in FL_SHUTDOWN parsing code.
Sometimes chip returns -EIO as if it is in FL_SHUTDOWN state when it should
wait in FL_PONT (error in order of conditions).

The following patch fixes the bug in state parsing code of CFI.  Also I've
added comments to notify developers if they want to add new case in future.

Signed-off-by: Alexey Korolev &lt;akorolev@infradead.org&gt;
Reviewed-by: Joern Engel &lt;joern@logfs.org&gt;
Cc: David Woodhouse &lt;dwmw2@infradead.org&gt;
Cc: &lt;stable@kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Chris Wright &lt;chrisw@sous-sol.org&gt;
</content>
</entry>
<entry>
<title>cache invalidation error for buffered write</title>
<updated>2008-01-11T19:44:37+00:00</updated>
<author>
<name>Massimo Cirillo</name>
<email>maxcir@gmail.com</email>
</author>
<published>2008-01-11T10:24:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=646fd12784d506180353005f40f90bcf08c84a3e'/>
<id>urn:sha1:646fd12784d506180353005f40f90bcf08c84a3e</id>
<content type='text'>
The bug causes corruptions of data read from flash.

The original code performs cache invalidation from "adr" to "adr + len"
in do_write_buffer().  Since len and adr could be updated in the code
before invalidation - it causes improper setting of cache invalidation
regions.

Signed-off-by: Massimo Cirillo &lt;maxcir@gmail.com&gt;
Signed-off-by: Giuseppe D'Eliseo &lt;giuseppedeliseo@gmail.com&gt;
Acked-by: Nicolas Pitre &lt;nico@cam.org&gt;
Acked-by: Jörn Engel &lt;joern@logfs.org&gt;
Signed-off-by: David Woohouse &lt;dwmw2@infradead.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[MTD] [NOR] Fix deadlock in Intel chip driver caused by get_chip recursion</title>
<updated>2007-10-23T11:07:52+00:00</updated>
<author>
<name>Alexey Korolev</name>
<email>akorolev@infradead.org</email>
</author>
<published>2007-10-22T16:55:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=5a37cf19efcceae14c2078449e35b9f4eb3e63e4'/>
<id>urn:sha1:5a37cf19efcceae14c2078449e35b9f4eb3e63e4</id>
<content type='text'>
This patch solves kernel deadlock issue seen on JFFF2 simultaneous 
operations. Detailed investigation of the issue showed that the kernel 
deadlock is caused by tons of recursive get_chip calls.

Signed-off-by: Alexey Korolev &lt;akorolev@infradead.org&gt;
Acked-by: Nicolas Pitre &lt;nico@cam.org&gt;
Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</content>
</entry>
<entry>
<title>[MTD] [NOR] fix ctrl-alt-del can't reboot for intel flash bug</title>
<updated>2007-10-13T13:36:18+00:00</updated>
<author>
<name>Kevin Hao</name>
<email>haokexin@gmail.com</email>
</author>
<published>2007-10-02T20:56:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c4a9f88daf6c382fedde4cdddef0b30f1d0a20db'/>
<id>urn:sha1:c4a9f88daf6c382fedde4cdddef0b30f1d0a20db</id>
<content type='text'>
When we press ctrl-alt-del,kernel_restart_prepare will invoke 
cfi_intelext_reboot which will set flash to read array mode, but later 
when device_shutdown is invoked which may put current work queue to 
sleep and other process may be scheduled to running and programming 
flash in not FL_READY mode again. So we can't boot up if this flash is 
used for bootloader.

Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</content>
</entry>
<entry>
<title>[MTD] fix CFI point method for discontiguous maps</title>
<updated>2007-09-23T17:40:49+00:00</updated>
<author>
<name>Andy Lowe</name>
<email>alowe@mvista.com</email>
</author>
<published>2007-01-12T23:05:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=097f2576eb7dbc8cd5f610847f229f4fea305b80'/>
<id>urn:sha1:097f2576eb7dbc8cd5f610847f229f4fea305b80</id>
<content type='text'>
The CFI probe routine is capable of detecting flash banks consisting of
identical chips mapped to physically discontiguous addresses.  (One
common way this can occur is if a flash bank is populated with chips of
less capacity than the hardware was designed to support.)  The CFI
point() routine currently ignores any such gaps.  This patch fixes
the CFI point() routine so that it truncates any request that would
span a gap.

Signed-off-by: Andy Lowe &lt;alowe@mvista.com&gt;
Signed-off-by: Nicolas Pitre &lt;nico@cam.org&gt;
Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</content>
</entry>
<entry>
<title>[MTD] Clean up duplicate includes in drivers/mtd/</title>
<updated>2007-07-23T10:56:27+00:00</updated>
<author>
<name>Jesper Juhl</name>
<email>jesper.juhl@gmail.com</email>
</author>
<published>2007-07-21T15:02:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=4cfff0db3a60a775c29abd9cbc300fc0f616904b'/>
<id>urn:sha1:4cfff0db3a60a775c29abd9cbc300fc0f616904b</id>
<content type='text'>
This patch cleans up duplicate includes in
	drivers/mtd/

Signed-off-by: Jesper Juhl &lt;jesper.juhl@gmail.com&gt;
Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</content>
</entry>
<entry>
<title>[MTD] [NOR] add FUJITSU MBM29F800BA and ST M29F800AB descriptions</title>
<updated>2007-07-06T03:29:49+00:00</updated>
<author>
<name>Philippe De Muyter</name>
<email>phdm@macqel.be</email>
</author>
<published>2007-07-05T15:05:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c9856e39e0c3b4d260e4614b66b0a7e0e79ec0ac'/>
<id>urn:sha1:c9856e39e0c3b4d260e4614b66b0a7e0e79ec0ac</id>
<content type='text'>
Add descriptions for Fujitsu MBM29F800BA and ST M29F800AB flash chips.
Those chips are compatible (except for the ids) with the AMD AM29F800BB.

Signed-off-by: Philippe De Muyter &lt;phdm@macqel.be&gt;
Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</content>
</entry>
<entry>
<title>[MTD] [CHIPS] fix tiny spelling error in comment in cfi_cmdset_0001.c</title>
<updated>2007-07-05T00:24:11+00:00</updated>
<author>
<name>Jesper Juhl</name>
<email>jesper.juhl@gmail.com</email>
</author>
<published>2007-07-05T00:18:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8f1a866fc6831f13593fae6194e3150d45976628'/>
<id>urn:sha1:8f1a866fc6831f13593fae6194e3150d45976628</id>
<content type='text'>
Trivial fix of a spelling error in a comment in cfi_cmdset_0001.c
s/ships/chips/

Signed-off-by: Jesper Juhl &lt;jesper.juhl@gmail.com&gt;
Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</content>
</entry>
<entry>
<title>[MTD] [NOR] Use NULL instead of 0 for pointer to shut sparse up.</title>
<updated>2007-06-28T22:00:09+00:00</updated>
<author>
<name>Randy Dunlap</name>
<email>randy.dunlap@oracle.com</email>
</author>
<published>2007-06-28T22:00:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=1da1caf8d80e953d0ff0c2131b04ccc609c3baa8'/>
<id>urn:sha1:1da1caf8d80e953d0ff0c2131b04ccc609c3baa8</id>
<content type='text'>
Use NULL instead of 0 for pointer:
drivers/mtd/chips/cfi_cmdset_0001.c:2258:43: warning: Using plain integer as NULL pointer

Other changes by inspection.

Signed-off-by: Randy Dunlap &lt;randy.dunlap@oracle.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</content>
</entry>
<entry>
<title>[MTD] [NOR] cfi_cmdset_0001.c: sparse fixes</title>
<updated>2007-06-28T19:24:31+00:00</updated>
<author>
<name>Ben Dooks</name>
<email>ben-linux@fluff.org</email>
</author>
<published>2007-05-28T19:11:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=029a9eb1f667ca71fe7eb3bf8962f01ac4d252a5'/>
<id>urn:sha1:029a9eb1f667ca71fe7eb3bf8962f01ac4d252a5</id>
<content type='text'>
Fix sparse warnings generated from cfi_cmdset_0001.c.

drivers/mtd/chips/cfi_cmdset_0001.c:1783:5: warning: symbol 'cfi_intelext_erase_varsize' was not declared. Should it be static?
drivers/mtd/chips/cfi_cmdset_0001.c:2258:43: warning: Using plain integer as NULL pointer

Signed-off-by: Ben Dooks &lt;ben-linux@fluff.org&gt;
Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</content>
</entry>
</feed>
