Skip to content
Commit b2be6951 authored by Haolin Li's avatar Haolin Li Committed by Jagan Teki
Browse files

mtd: spinand: macronix: Fix ECC Status Read



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: default avatarHaolin Li <li.haolin@qq.com>
Reviewed-by: default avatarJagan Teki <jagan@amarulasolutions.com>
parent 7a508a72
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment