
8 Oct
2021
8 Oct
'21
2:33 p.m.
On Sun, Sep 5, 2021 at 8:12 PM li.haolin@qq.com wrote:
From: Haolin Li li.haolin@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@qq.com
Applied to u-boot-spi/master