[PATCH] spi: nxp_fspi: reset the FLSHxCR1 registers

2023-09-13 Thread Han Xu
Reset the FLSHxCR1 registers to default value. ROM may set the register value and it affects the SPI NAND normal functions. Signed-off-by: Han Xu --- drivers/spi/nxp_fspi.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/spi/nxp_fspi.c b/drivers/spi/nxp_fspi.c index

Re: [PATCH 4/4] spl: spl_nand: Fix bad block handling in fitImage

2022-05-06 Thread Han Xu
evam > Signed-off-by: Michael Trimarchi Acked-by: Han Xu > --- > V1->V2: > - move out from RFC > --- > common/spl/spl_nand.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/common/spl/spl_nand.c b/common/spl/spl_nand.c > ind

Re: [PATCH V2 3/4] arm: mach-imx: cmd_nandbcb fix bad block handling

2022-05-06 Thread Han Xu
it and read it back. > > Cc: Han Xu > Cc: Fabio Estevam > Signed-off-by: Michael Trimarchi Acked-by: Han Xu > --- > V1->V2: > - Adjust the commit message > - Add Cc Han Xu and Fabio > - move out from RFC > --- > arch/arm/mach-imx/cm

Re: [PATCH V2 2/4] mtd: nand: mxs_nand_spl: Fix bad block skipping

2022-05-06 Thread Han Xu
code was tested on an imx8mn where > the boot rom api was not able to skip it. Apart of that other > architecure are using this code and all boards that has nand as boot > device can be affected > > Cc: Han Xu > Cc: Fabio Estevam > Signed-off-by: Michael Trimarchi Acked-by: Han

Re: [PATCH V2 1/4] nand: raw: mxs_nand: Fix specific hook registration

2022-05-06 Thread Han Xu
t; > nand markbad 0xDEC00 > NXS NAND: Writing OOB isn't supported > NXS NAND: Writing OOB isn't supported > block 0x000dec00 NOT marked as bad! ERROR 0 > > Cc: Han Xu > Cc: Fabio Estevam > Signed-off-by: Michael Trimarchi Acked-by: Han Xu > --- > V1->V2: >

Re: [PATCH V2 2/4] mtd: nand: mxs_nand_spl: Fix bad block skipping

2022-05-02 Thread Han Xu
On 22/05/01 08:36AM, Michael Nazzareno Trimarchi wrote: > Dear Han and Fabio > > On Thu, Apr 28, 2022 at 7:01 AM Michael Nazzareno Trimarchi > wrote: > > > > Hi > > > > On Thu, Apr 28, 2022 at 2:27 AM Han Xu wrote: > > > > > > > >

RE: [PATCH V2 2/4] mtd: nand: mxs_nand_spl: Fix bad block skipping

2022-04-27 Thread Han Xu
> -Original Message- > From: Michael Trimarchi > Sent: Wednesday, April 27, 2022 12:50 AM > To: Han Xu ; U-Boot-Denx > Cc: Ye Li ; Stefano Babic ; Miquel Raynal > ; Fabio Estevam ; Dario > Binacchi ; Sean Anderson > ; linux-ker...@amarulasolutions.c

[PATCH v4] mtd: gpmi: fix the bch setting backward compatible issue

2022-03-25 Thread Han Xu
ested-by: Tim Harvey Tested-by: Sean Nyekjaer Signed-off-by: Han Xu --- Changes in v2: - change the commit log about backward compatible issue is in u-boot - removed the unused flag - add fixes and test tag Changes in v3: - fix the fixes syntax - fix the change log syntax - add more tes

[PATCH v3] mtd: gpmi: fix the bch setting backward compatible issue

2022-03-24 Thread Han Xu
ested-by: Tim Harvey Tested-by: Sean Nyekjaer Signed-off-by: Han Xu --- Changes in v2: - change the commit log about backward compatible issue is in u-boot - removed the unused flag - add fixes and test tag Changes in v3: - fix the fixes syntax - fix the change log syntax - add more test tag -

[PATCH v2] mtd: gpmi: fix the bch setting backward compatible issue

2022-03-23 Thread Han Xu
: Tim Harvey Signed-off-by: Han Xu Changes in v2: -- change the commit log about backward compatible issue is in u-boot -- removed the unused flag -- add fixes and test tag --- drivers/mtd/nand/raw/mxs_nand.c| 71 ++ drivers/mtd/nand/raw/mxs_nand_dt.c | 2 -

Re: [PATCH] mtd: gpmi: fix the gpmi bch setting unalignment issue

2022-03-23 Thread Han Xu
On 22/03/22 12:34PM, Tim Harvey wrote: > On Mon, Mar 21, 2022 at 1:37 PM Han Xu wrote: > > > > The code change fixed the kernel gpmi bch setting not aligned with > > u-boot settings issue. It still uses the legacy bch geometry as the > > default option. If users nee

[PATCH] mtd: gpmi: fix the gpmi bch setting unalignment issue

2022-03-21 Thread Han Xu
m-ecc" or CONFIG_NAND_MXS_USE_MINIMUM_ECC in configs. Fixes: 51cdf83eea mtd: gpmi: provide the option to use legacy bch geometry Signed-off-by: Han Xu --- drivers/mtd/nand/raw/mxs_nand.c | 71 - 1 file changed, 62 insertions(+), 9 deletions(-) diff --git a/drivers/mt

Re: [EXT] [PATCH] mtd: mxs_nand: default to legacy bch and rename to modern bch option

2022-03-17 Thread Han Xu
r > modification. We > >> prefer the current u-boot bch geometry, so I will send out a kernel > patch to > >> make them align. > >> > > Any progress on this? > > > > I see your patch in: > > > https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fimx%2Flinux-imx%2Fcommit%2Fdrivers%2Fmtd%2Fnand%2Fraw%2Fgpmi-nand%3Fh%3Dimx_5.4.70_2.3.0%26id%3Dae980dccc6189956fab047958ad0a70ec4951439data=04%7C01%7Cfrieder.schrempf%40kontron.de%7C275b7f11361e4fd3eb7e08d91b6f0e45%7C8c9d3c973fd941c8a2b1646f3942daf1%7C0%7C0%7C637570986066857865%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=L4xAN9HDl68dmA%2FX6nnP%2Buqh6CUKTQZJeFWja5EvmPI%3Dreserved=0 > > > > But I can't find the option for selecting legacy mode in the > devicetree... > > > > /Sean > > __ > Linux MTD discussion mailing list > http://lists.infradead.org/mailman/listinfo/linux-mtd/ > -- Sincerely, Han XU

Re: [U-Boot] [PATCH v1 9/9] arm: dts: imx7: colibri: add raw NAND support

2018-06-27 Thread Han Xu
On 04/20/2018 10:53 AM, Stefan Agner wrote: > From: Stefan Agner > > Signed-off-by: Stefan Agner > --- > > arch/arm/dts/imx7-colibri.dts | 28 > 1 file changed, 28 insertions(+) > > diff --git a/arch/arm/dts/imx7-colibri.dts b/arch/arm/dts/imx7-colibri.dts >