|
@@ -1067,9 +1067,6 @@ static int gpmi_ecc_read_page(struct mtd_info *mtd, struct nand_chip *chip,
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
- /* handle the block mark swapping */
|
|
|
- block_mark_swapping(this, payload_virt, auxiliary_virt);
|
|
|
-
|
|
|
/* Loop over status bytes, accumulating ECC status. */
|
|
|
status = auxiliary_virt + nfc_geo->auxiliary_status_offset;
|
|
|
|
|
@@ -1158,6 +1155,9 @@ static int gpmi_ecc_read_page(struct mtd_info *mtd, struct nand_chip *chip,
|
|
|
max_bitflips = max_t(unsigned int, max_bitflips, *status);
|
|
|
}
|
|
|
|
|
|
+ /* handle the block mark swapping */
|
|
|
+ block_mark_swapping(this, buf, auxiliary_virt);
|
|
|
+
|
|
|
if (oob_required) {
|
|
|
/*
|
|
|
* It's time to deliver the OOB bytes. See gpmi_ecc_read_oob()
|