u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [PATCH] mtd: nand: mxs_nand_spl: Add nand_spl_adjust_offset
@ 2021-08-17  9:24 Ye Li
  2021-10-07 14:14 ` sbabic
  0 siblings, 1 reply; 2+ messages in thread
From: Ye Li @ 2021-08-17  9:24 UTC (permalink / raw)
  To: sbabic, u-boot, festevam, peng.fan; +Cc: uboot-imx

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.

Signed-off-by: Ye Li <ye.li@nxp.com>
---
 drivers/mtd/nand/raw/mxs_nand_spl.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/mtd/nand/raw/mxs_nand_spl.c b/drivers/mtd/nand/raw/mxs_nand_spl.c
index 17f46ae..022c819 100644
--- a/drivers/mtd/nand/raw/mxs_nand_spl.c
+++ b/drivers/mtd/nand/raw/mxs_nand_spl.c
@@ -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;
+}
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] mtd: nand: mxs_nand_spl: Add nand_spl_adjust_offset
  2021-08-17  9:24 [PATCH] mtd: nand: mxs_nand_spl: Add nand_spl_adjust_offset Ye Li
@ 2021-10-07 14:14 ` sbabic
  0 siblings, 0 replies; 2+ messages in thread
From: sbabic @ 2021-10-07 14:14 UTC (permalink / raw)
  To: Ye Li, U-Boot

> 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.
> Signed-off-by: Ye Li <ye.li@nxp.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
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: sbabic@denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-07 14:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-17  9:24 [PATCH] mtd: nand: mxs_nand_spl: Add nand_spl_adjust_offset Ye Li
2021-10-07 14:14 ` sbabic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).