From: Wolfgang Denk Date: Thu, 09 Sep 2010 20:28:30 +0200 Subject: [U-Boot] [PATCH v2] cp/cmp: Add WATCHDOG_RESET in copy and compare loop In-Reply-To: <1283322171-9451-1-git-send-email-sr@denx.de> References: <1283322171-9451-1-git-send-email-sr@denx.de> Message-ID: <20100909182830.08EBE1524F7@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Stefan Roese, In message <1283322171-9451-1-git-send-email-sr@denx.de> you wrote: > On some boards with a very short watchdog timeout, the "cp" and > "cmp" commands may reset the board. This patch adds some > watchdog resets inside the loops. Otherwise for example the lwmon5 > board will reset while doing something like this: > > => cp.b fc000000 1000000 100000 > > Signed-off-by: Stefan Roese > --- > v2: > - Changed to power of 2 value to simplify the resulting code, > 4096 seems to be enough for lwmon5. Hm... as mentioned before, the trigger interval is in the order of tens of microseconds. I don't think that the 440EX is _that_ slow? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "The pathology is to want control, not that you ever get it, because of course you never do." - Gregory Bateson