Commit e24bb2b7 authored by Stefan Agner's avatar Stefan Agner Committed by Stefano Babic

mtd: nand: vf610_nfc: resync with upstream Linux version

This resyncs the driver changes with the Linux version of the
driver. The driver received some feedback in the LKML and got
recently acceppted, the latest version can be found here:

Notable changes are:
- On ECC error, reread OOB and count bit flips in OOB too.
  If flipped bits are below threshold, also return an empty
  OOB buffer.
- Return the amount of bit flips in vf610_nfc_read_page.
- Use endianness aware vf610_nfc_read to read ECC status.
- Do not enable IDLE IRQ (since we do not operate with an
  interrupt service routine).
- Use type safe struct for buffer variants (vf610_nfc_alt_buf).
- Renamed variables in struct vf610_nfc (column and page_sz)
  to reflect better what they really representing.

The U-Boot version currently does not support RAW NAND write
when using the HW ECC engine.
Signed-off-by: default avatarBhuvanchandra DV <>
Signed-off-by: default avatarStefan Agner <>
Tested-by: default avatarAlbert ARIBAUD (3ADEV) <>
Tested-by: default avatarStefan Agner <>
Acked-by: default avatarScott Wood <>
parent 61903b75
This diff is collapsed.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment