mtd: nand: sunxi: cleanup and improvements
Get series with b4
b4 am 1443649529-9852-1-git-send-email-boris.brezillon@free-electrons.comVersions newest first · linked by author and title
- v2 Latest7 patches 0 repliesNew
- v10 of 2 patches 0 repliesSuperseded
Changes in v2 from the cover letter
- drop the first patch (already applied)
- split the second patch to ease the review
- add the 'fix bitflips in erased pages' patch
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | mtd: nand: sunxi: create sunxi_nfc_hw_ecc_enable()/disable() functionsdrivers/ | +32 | 0 replies | |
| 2/7 | mtd: nand: sunxi: introduce sunxi_nfc_hw_ecc_read/write_chunk()drivers/ | +92 | 0 replies | |
| 3/7 | mtd: nand: sunxi: make use of sunxi_nfc_hw_ecc_read/write_chunk()drivers/ | +40 | 0 replies | |
| 4/7 | mtd: nand: sunxi: factorize extra OOB bytes handlingdrivers/ | +48 | 0 replies | |
| 5/7 | mtd: nand: sunxi: retrieve corrected OOB bytesdrivers/ | +17 | 0 replies | |
| 6/7 | mtd: nand: sunxi: replace the NFC_BUF_TO_USER_DATA() macro by an inline functiondrivers/ | +7 | 0 replies | |
| 7/7 | mtd: nand: sunxi: fix bitflips in erased pagesdrivers/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/7] mtd: nand: sunxi: cleanup and improvements
Hello,
This patch series aims at cleaning up the sunxi_nand driver by factorizing the duplicated code found in hw_ecc and hw_syndrome_ecc implementations.
It also adds support for OOB bytes protection (only on a limited amount of OOB bytes), and add code to correctly handle the 'bitflips in erased pages' case.
Best Regards,
Boris
Changes since v1:
- drop the first patch (already applied)
- split the second patch to ease the review
- add the 'fix bitflips in erased pages' patch
Boris Brezillon (7):
mtd: nand: sunxi: create sunxi_nfc_hw_ecc_enable()/disable() functions
mtd: nand: sunxi: introduce sunxi_nfc_hw_ecc_read/write_chunk()
mtd: nand: sunxi: make use of sunxi_nfc_hw_ecc_read/write_chunk()
mtd: nand: sunxi: factorize extra OOB bytes handling
mtd: nand: sunxi: retrieve corrected OOB bytes
mtd: nand: sunxi: replace the NFC_BUF_TO_USER_DATA() macro by an
inline function
mtd: nand: sunxi: fix bitflips in erased pages
drivers/mtd/nand/sunxi_nand.c | 416 ++++++++++++++++++++++-------------------- 1 file changed, 220 insertions(+), 196 deletions(-)
Signature · 1 line
2.1.4