From patchwork Mon Jan 31 08:05:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaap de Jong X-Patchwork-Id: 81085 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 5FD43B7129 for ; Mon, 31 Jan 2011 19:18:10 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4758F280D7; Mon, 31 Jan 2011 09:18:07 +0100 (CET) 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 sgiCQMQ6FcWK; Mon, 31 Jan 2011 09:18:07 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CEA15280CD; Mon, 31 Jan 2011 09:18:05 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 15952280CD for ; Mon, 31 Jan 2011 09:18:04 +0100 (CET) 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 wJngVGznlPml for ; Mon, 31 Jan 2011 09:18:02 +0100 (CET) X-Greylist: delayed 724 seconds by postgrey-1.27 at theia; Mon, 31 Jan 2011 09:18:00 CET 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 smtp.nedap.com (smtp3.nedap.com [87.249.123.12]) by theia.denx.de (Postfix) with ESMTP id 066D2280C8 for ; Mon, 31 Jan 2011 09:18:00 +0100 (CET) Received: from nvs0066.nedap.local ([10.91.8.1]) by smtp.nedap.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 31 Jan 2011 09:05:55 +0100 X-TM-IMSS-Message-ID: <05ea005900001012@nedap.com> Received: from [10.2.40.10] ([10.2.40.10]) by nedap.com ([10.91.8.1]) with ESMTP (TREND IMSS SMTP Service 7.0) id 05ea005900001012 ; Mon, 31 Jan 2011 09:06:00 +0100 Message-ID: <4D466D63.1090104@nedap.com> Date: Mon, 31 Jan 2011 09:05:55 +0100 From: Jaap de Jong User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: u-boot@lists.denx.de X-OriginalArrivalTime: 31 Jan 2011 08:05:55.0719 (UTC) FILETIME=[AFC2E970:01CBC11D] Subject: [U-Boot] nand commands missing wtchdog reset 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 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... Regards, Jaap 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();