From: Jaap de Jong <jaap.dejong@nedap.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] nand commands missing wtchdog reset
Date: Mon, 31 Jan 2011 09:05:55 +0100 [thread overview]
Message-ID: <4D466D63.1090104@nedap.com> (raw)
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
next reply other threads:[~2011-01-31 8:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-31 8:05 Jaap de Jong [this message]
2011-01-31 19:16 ` [U-Boot] nand commands missing wtchdog reset Scott Wood
2011-01-31 19:25 ` Scott Wood
2011-02-01 9:43 ` Jaap de Jong
2011-02-01 16:25 ` Scott Wood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D466D63.1090104@nedap.com \
--to=jaap.dejong@nedap.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox