From: Stuart Wood Date: Mon, 2 Jun 2008 16:40:08 -0400 Subject: [U-Boot-Users] [PATCH]jffs2_1pass.c - Adding watchdog support Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Adds watchdog support. signed off by Stuart Wood --- diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c index a330438..9ff8e12 100644 --- a/fs/jffs2/jffs2_1pass.c +++ b/fs/jffs2/jffs2_1pass.c @@ -116,6 +116,7 @@ #include #include #include +#include #if defined(CONFIG_CMD_JFFS2) @@ -1188,6 +1189,9 @@ jffs2_1pass_build_lists(struct part_info * part) oldoffset = offset; } + /* Kick and watch dog, if present */ + WATCHDOG_RESET(); + node = (struct jffs2_unknown_node *) get_node_mem((u32)part->offset + offset); if (node->magic == JFFS2_MAGIC_BITMASK && hdr_crc(node)) { /* if its a fragment add it */