From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eu1sys200aog114.obsmtp.com ([207.126.144.137]) by canuck.infradead.org with smtps (Exim 4.72 #1 (Red Hat Linux)) id 1Q1tKo-00039v-PS for linux-mtd@lists.infradead.org; Tue, 22 Mar 2011 04:36:48 +0000 Message-ID: <4D882750.6090706@st.com> Date: Tue, 22 Mar 2011 10:06:32 +0530 From: viresh kumar MIME-Version: 1.0 To: "Artem.Bityutskiy@nokia.com" , "David.Woodhouse@intel.com" Subject: Re: [PATCH] Newly erased page read workaround References: In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: Vipin KUMAR , Shiraz HASHIM , "linux-mtd@lists.infradead.org" List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 02/24/2011 11:40 AM, Viresh KUMAR wrote: > From: Vipin Kumar > > A newly erased page contains ff in data as well as spare area. While reading an > erased page, the read out ecc from spare area does not match the ecc generated > by fsmc ecc hardware accelarator. This is because ecc of data ff ff is not ff > ff. This leads to errors when jffs2 fs erases and reads back the pages to > ensure consistency. > > This patch adds a software workaround to ensure that the ecc check is not > performed for erased pages. An erased page is checked by checking data as ff ff. > > Signed-off-by: Vipin Kumar > Signed-off-by: Viresh Kumar > Acked-by: Linus Walleij Artem, David, Have you pushed this patch for 39-rc1? -- viresh