public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] nand commands missing wtchdog reset
@ 2011-01-31  8:05 Jaap de Jong
  2011-01-31 19:16 ` Scott Wood
  0 siblings, 1 reply; 5+ messages in thread
From: Jaap de Jong @ 2011-01-31  8:05 UTC (permalink / raw)
  To: u-boot

Hi all,
On my board (at91sam9263ek) I have enabled the watchdog.
It will reset the processor after about 16 seconds.
It looks like it is working but if I'm writing a large file into nand it 
seems that the watchdog is not reset and finally my processor resets.
I've patched it, but I'm not sure if it is the right way to do it this 
way...

diff -urN a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
--- a/drivers/mtd/nand/nand_base.c    2010-12-22 20:22:14.000000000 +0100
+++ b/drivers/mtd/nand/nand_base.c    2011-01-31 08:45:07.818135600 +0100
@@ -447,6 +447,7 @@
          if (chip->dev_ready)
              if (chip->dev_ready(mtd))
                  break;
+        WATCHDOG_RESET ();
      }
  }

@@ -730,6 +731,7 @@
              if (this->read_byte(mtd) & NAND_STATUS_READY)
                  break;
          }
+        WATCHDOG_RESET ();
      }
  #ifdef PPCHAMELON_NAND_TIMER_HACK
      reset_timer();

Regards,
Jaap

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

end of thread, other threads:[~2011-02-01 16:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-31  8:05 [U-Boot] nand commands missing wtchdog reset Jaap de Jong
2011-01-31 19:16 ` Scott Wood
2011-01-31 19:25   ` Scott Wood
2011-02-01  9:43     ` Jaap de Jong
2011-02-01 16:25       ` Scott Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox