Skip to contentSkip to conversation

mtd: nand: mxs_nand_spl: Add nand_spl_adjust_offset

PATCH New Ye Li 2 participants 2 messages Aug 17, 2021 – Oct 7, 2021

Subsystems (3)
lore
Share & tools
lore

Ye Li

author
#0 lore raw

PATCH 1/1 mtd: nand: mxs_nand_spl: Add nand_spl_adjust_offset

Since the mxs_nand_spl has implemented adjust read offset in nand_spl_load_image, so we don't need to check the bad block in nand_spl_adjust_offset. Directly return the offset to continue read by nand_spl_load_image.

---
 drivers/mtd/nand/raw/mxs_nand_spl.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/mtd/nand/raw/mxs_nand_spl.c +5 -0
index 17f46ae..022c819 100644
@@ -296,3 +296,8 @@ void nand_deselect(void)
 {
 }
 
+u32 nand_spl_adjust_offset(u32 sector, u32 offs)
+{
+	/* Handle the offset adjust in nand_spl_load_image,*/
+	return offs;
+}
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 mtd: nand: mxs_nand_spl: Add nand_spl_adjust_offset

Quoted 5 lines

Since the mxs_nand_spl has implemented adjust read offset in nand_spl_load_image, so we don't need to check the bad block in nand_spl_adjust_offset. Directly return the offset to continue read by nand_spl_load_image.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================