From patchwork Tue Jul 5 07:26:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "esw@bus-elektronik.de" X-Patchwork-Id: 103205 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 64076B6F70 for ; Tue, 5 Jul 2011 17:26:20 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A576528087; Tue, 5 Jul 2011 09:26:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gK8BFZT2iaT7; Tue, 5 Jul 2011 09:26:18 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 477B528089; Tue, 5 Jul 2011 09:26:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1BD2B28089 for ; Tue, 5 Jul 2011 09:26:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TS3UU1va3hJM for ; Tue, 5 Jul 2011 09:26:13 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mailout-f6.arcor-ip.de (mailout-f6.arcor-ip.de [145.253.3.208]) by theia.denx.de (Postfix) with ESMTP id 4B2C428087 for ; Tue, 5 Jul 2011 09:26:12 +0200 (CEST) Received: from bus-elektronik.de (unknown [212.144.119.2]) by mailout-f6.arcor-ip.de (Arcor-IP) with ESMTPA id 5ECD214C12F; Tue, 5 Jul 2011 09:26:12 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by bus-elektronik.de (Postfix) with ESMTP id EDC4F1E51E; Tue, 5 Jul 2011 09:26:11 +0200 (CEST) Received: from 127.0.0.1 (helo=localhost) by localhost with ESMTP (eXpurgate 3.0.4) (envelope-from ) for ; Tue, 05 Jul 2011 09:26:11 +0200 Received: from bus-elektronik.de (localhost [127.0.0.1]) by localhost (AvMailGate-3.1.2) id 24493-GVeACW; Tue, 05 Jul 2011 07:26:11 -0000 Received: from [10.0.0.1] (unknown [192.168.30.80]) by bus-elektronik.de (Postfix) with ESMTP id 9E0C11840B; Tue, 5 Jul 2011 09:26:11 +0200 (CEST) Message-ID: <4E12BC93.1000108@bus-elektronik.de> Date: Tue, 05 Jul 2011 09:26:11 +0200 From: Jens Scharsig User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: "u-boot@lists.denx.de" X-AntiVirus: checked by Avira MailGate (version: 3.1.2; AVE: 8.2.5.34; VDF: 7.11.10.215; host: bus-elektronik); id=24493-GVeACW X-purgate-ID: 149719::1309850771-00007BC7-70CF48A1/0-0/0-0 X-purgate-type: clean X-purgate-size: 991 X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean Cc: Jens Scharsig Subject: [U-Boot] [PATCH] Fix: if using crc32 command watchdog timed out X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de * Fix: if using crc32 command watchdog timed out Signed-off-by: Jens Scharsig --- common/cmd_mem.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) addr, addr + length - 1, crc); @@ -1137,7 +1137,7 @@ usage: addr += base_address; length = simple_strtoul(*av++, NULL, 16); - crc = crc32(0, (const uchar *) addr, length); + crc = crc32_wd(0, (const uchar *) addr, length, CHUNKSZ_CRC32); if (!verify) { printf ("CRC32 for %08lx ... %08lx ==> %08lx\n", diff --git a/common/cmd_mem.c b/common/cmd_mem.c index a5576aa..4daa1b3 100644 --- a/common/cmd_mem.c +++ b/common/cmd_mem.c @@ -1092,7 +1092,7 @@ int do_mem_crc (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) length = simple_strtoul (argv[2], NULL, 16); - crc = crc32 (0, (const uchar *) addr, length); + crc = crc32_wd(0, (const uchar *) addr, length, CHUNKSZ_CRC32); printf ("CRC32 for %08lx ... %08lx ==> %08lx\n",