This repository has been archived on 2026-03-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
ubports_kernel_google_msm/drivers
Alexey Korolev fb6d080c6f mtd: fix broken state in CFI driver caused by FL_SHUTDOWN
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 <akorolev@infradead.org>
Reviewed-by: Joern Engel <joern@logfs.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-04 14:46:26 -07:00
..
2008-04-04 02:43:38 -04:00
2008-03-23 20:28:20 +01:00
2008-03-30 14:18:41 -07:00
2008-03-15 19:17:12 -07:00
2008-03-03 10:47:13 -08:00
2008-03-19 18:53:37 -07:00
2008-03-28 12:32:22 -05:00
2008-02-26 14:12:09 +09:00
2008-03-18 01:22:10 -04:00
2008-03-30 14:20:23 -07:00
2008-03-04 16:35:12 -08:00
2008-04-04 18:36:46 +02:00