summaryrefslogtreecommitdiff
path: root/drivers/ddr/microchip/ddr2_regs.h
diff options
context:
space:
mode:
authorHaolin Li <li.haolin@qq.com>2021-09-05 22:41:41 +0800
committerJagan Teki <jagan@amarulasolutions.com>2021-10-08 17:59:34 +0530
commitb2be69516662957a9cb1b330d640898f262f7f0e (patch)
treeecea8728aec851838b1787ce41299104d34694bc /drivers/ddr/microchip/ddr2_regs.h
parent7a508a7245592ca44b3dc51c0293656dce60d658 (diff)
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: Haolin Li <li.haolin@qq.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'drivers/ddr/microchip/ddr2_regs.h')
0 files changed, 0 insertions, 0 deletions