[PATCH V3 25/63] Newly erased page read workaround

Linus Walleij linus.walleij at stericsson.com
Fri Jan 14 07:36:49 EST 2011


2010/12/20 Viresh Kumar <viresh.kumar at st.com>:

> From: Vipin Kumar <vipin.kumar at st.com>
>
> 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 <vipin.kumar at st.com>
> Signed-off-by: Viresh Kumar <viresh.kumar at st.com>

Acked-by: Linus Walleij <linus.walleij at stericsson.com>

Sorry for missing it before.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list