Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

omap_gpmc.c

Blame
  • Forked from Reform / reform-boundary-uboot
    Source project has a limited visibility.
    • Nikita Kiryanov's avatar
      2528460c
      mtd: nand: omap: fix HAM1_SW ecc using default value for ecc.size · 2528460c
      Nikita Kiryanov authored
      
      Commit "mtd: nand: omap: enable BCH ECC scheme using ELM for generic
      platform" (d016dc42) changed the way
      software ECC is configured, both during boot, and during ecc switch, in a way
      that is not backwards compatible with older systems:
      
      Older version of omap_gpmc.c always assigned ecc.size = 0 when configuring
      for software ecc, relying on nand_scan_tail() to select a default for ecc.size
      (256), while the new version of omap_gpmc.c assigns ecc.size = pagesize,
      which is likely to not be 256.
      
      Since 1 bit hamming sw ecc is only meant to be used by legacy devices, revert
      to the original behavior.
      
      Cc: Igor Grinberg <grinberg@compulab.co.il>
      Cc: Tom Rini <trini@ti.com>
      Cc: Scott Wood <scottwood@freescale.com>
      Cc: Pekon Gupta <pekon@ti.com>
      Signed-off-by: default avatarNikita Kiryanov <nikita@compulab.co.il>
      Acked-by: default avatarPekon Gupta <pekon@ti.com>
      2528460c
      History
      mtd: nand: omap: fix HAM1_SW ecc using default value for ecc.size
      Nikita Kiryanov authored
      
      Commit "mtd: nand: omap: enable BCH ECC scheme using ELM for generic
      platform" (d016dc42) changed the way
      software ECC is configured, both during boot, and during ecc switch, in a way
      that is not backwards compatible with older systems:
      
      Older version of omap_gpmc.c always assigned ecc.size = 0 when configuring
      for software ecc, relying on nand_scan_tail() to select a default for ecc.size
      (256), while the new version of omap_gpmc.c assigns ecc.size = pagesize,
      which is likely to not be 256.
      
      Since 1 bit hamming sw ecc is only meant to be used by legacy devices, revert
      to the original behavior.
      
      Cc: Igor Grinberg <grinberg@compulab.co.il>
      Cc: Tom Rini <trini@ti.com>
      Cc: Scott Wood <scottwood@freescale.com>
      Cc: Pekon Gupta <pekon@ti.com>
      Signed-off-by: default avatarNikita Kiryanov <nikita@compulab.co.il>
      Acked-by: default avatarPekon Gupta <pekon@ti.com>