[PATCH] mtd: spinand: macronix: Fix ECC Status Read

Jagan Teki jagan at amarulasolutions.com
Fri Oct 8 14:33:05 CEST 2021


On Sun, Sep 5, 2021 at 8:12 PM <li.haolin at qq.com> wrote:
>
> From: Haolin Li <li.haolin at qq.com>
>
> According to datasheet, the upper four bits are reserved or used for
> reflecting the ECC status of the accumulated pages. The error bits
> number for the worst segment of the current page is encoded on lower
> four bits. Fix it by masking the upper bits.
>
> This same issue has been already fixed in the linux kernel by:
> "mtd: spinand: macronix: Fix ECC Status Read"
> (sha1: f4cb4d7b46f6409382fd981eec9556e1f3c1dc5d)
>
> Apply the same fix in the U-Boot driver.
>
> Signed-off-by: Haolin Li <li.haolin at qq.com>
> ---

Applied to u-boot-spi/master


More information about the U-Boot mailing list