Re: [U-Boot] Possible bug in NAND driver

2009-07-16 Thread Scott Wood
On Mon, Jul 13, 2009 at 02:34:42PM -0500, Paulraj, Sandeep wrote: > I see that changing > > if (rval != 0) > > > to > > if (rval != 0 && rval != -EUCLEAN ) > > > solves the problem. > > I can submit a patch if required. Yes, please submit a patch. Thanks! -Scott __

Re: [U-Boot] Possible bug in NAND driver

2009-07-14 Thread Valeriy Glushkov
You are right, this is a bug. I've already fixed it in our code tree some monthes ago but forgotten to send the patch to the list. Best regards, Valeriy Glushkov - Original Message - From: "Paulraj, Sandeep" To: Sent: 13 2009 ?. 22:34 Subject: [U-Boot] Possi

[U-Boot] Possible bug in NAND driver

2009-07-13 Thread Paulraj, Sandeep
If we refer to the following code snippet from nand_util.c rval = nand_read (nand, offset, &read_length, p_buffer); if (rval != 0) { printf ("NAND read from offset %llx failed %d\n", offset, rval);