Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c1ddf6d authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mtd: msm_qpic_nand: Skip erased page check upon error"

parents aa1f25eb 112cc4cb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2023,7 +2023,7 @@ static int msm_nand_is_erased_page_ps(struct mtd_info *mtd, loff_t from,
			total_ecc_byte_cnt, DMA_FROM_DEVICE);
	/* check for bit flips in ecc data */
	ecc_temp = ecc;
	for (n = rw_params->start_sector; n < cwperpage; n++) {
	for (n = rw_params->start_sector; !err && n < cwperpage; n++) {
		int last_pos = 0, next_pos = 0;
		int ecc_bytes_percw_in_bits = (chip->ecc_parity_bytes * 8);

@@ -2691,7 +2691,7 @@ static int msm_nand_is_erased_page(struct mtd_info *mtd, loff_t from,
			total_ecc_byte_cnt, DMA_FROM_DEVICE);
	/* check for bit flips in ecc data */
	ecc_temp = ecc;
	for (n = rw_params->start_sector; n < cwperpage; n++) {
	for (n = rw_params->start_sector; !err && n < cwperpage; n++) {
		int last_pos = 0, next_pos = 0;
		int ecc_bytes_percw_in_bits = (chip->ecc_parity_bytes * 8);