From: Wolfram Sang Date: Wed, 5 Dec 2012 20:46:02 +0000 (+0100) Subject: mtd: nand: gpmi: reset BCH earlier, too, to avoid NAND startup problems X-Git-Tag: v3.2.36~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86d5031c943445a561eae9c827d610e58a3325fd;p=pandora-kernel.git mtd: nand: gpmi: reset BCH earlier, too, to avoid NAND startup problems commit 6f2a6a52560ad8d85710aabd92b7a3239b3a6b07 upstream. It could happen (1 out of 100 times) that NAND did not start up correctly after warm rebooting, so the kernel could not find the UBI or DMA timed out due to a stalled BCH. When resetting BCH together with GPMI, the issue could not be observed anymore (after 10000+ reboots). We probably need the consistent state already before sending any command to NAND, even when no ECC is needed. I chose to keep the extra reset for BCH when changing the flash layout to be on the safe side. Signed-off-by: Wolfram Sang Acked-by: Huang Shijie Signed-off-by: Artem Bityutskiy Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed