sunxi_nand_spl: Do not bother writing the spare-area reg in syndrome mode
authorHans de Goede <hdegoede@redhat.com>
Sat, 15 Aug 2015 10:43:26 +0000 (12:43 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 10:19:13 +0000 (12:19 +0200)
commit3469de7b78073576d13756e0dce4ae5d6a5f1559
tree1c55712c0246a4795aabc023036ffda74dd5d707
parentdad60121a5770e919bb79ff3d0d24bd8503e797b
sunxi_nand_spl: Do not bother writing the spare-area reg in syndrome mode

In syndrome mode we set the NFC_SEQ bit in the command register, so the
spare-area register is not used. Also the value currently being written is
actual wrong, the ecc sits at "column + CONFIG_NAND_SUNXI_SPL_ECC_PAGE_SIZE"
not just CONFIG_NAND_SUNXI_SPL_ECC_PAGE_SIZE.

So the current code only serves to confuse the user -> remove it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
drivers/mtd/nand/sunxi_nand_spl.c