From: Tadashi Abe Date: Thu, 19 May 2011 06:58:15 +0000 (+0900) Subject: mtd: fix hang-up in cfi erase and read contention X-Git-Tag: v3.0-rc1~32^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=100f2341e305f98de3aa12fb472771ab029cbda7;p=pandora-kernel.git mtd: fix hang-up in cfi erase and read contention cfi erase command hangs up when erase and read contention occurs. If read runs at the same address as erase operation, read issues Erase-Suspend via get_chip() and the erase goes into sleep in wait queue. But in this case, read operation exits by time-out without waking it up. I think the other variants (0001, 0020 and lpddr) have the same problem too. Tested and verified the patch only on CFI-0002 flash, though. Signed-off-by: Tadashi Abe Acked-by: Joakim Tjernlund Signed-off-by: David Woodhouse --- Reading git-diff-tree failed