From: Reinhard Meyer Date: Thu, 07 Oct 2010 14:45:21 +0200 Subject: [U-Boot] [PATCH v2] ns16550: Add WATCHDOG_RESET to putc for short watchdog timeout boards In-Reply-To: <20101007122352.57FF71539A0@gemini.denx.de> References: <1286434900-11804-1-git-send-email-sr@denx.de> <20101007101733.893971539A0@gemini.denx.de> <201010071327.40328.sr@denx.de> <20101007122352.57FF71539A0@gemini.denx.de> Message-ID: <4CADC0E1.1020502@emk-elektronik.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de >> Back to the problem: How about moving the watchdog_reset call to serial_puts() >> in common/serial.c? Or do you have another (better) idea in mind? > > Are you really sure this is the right place, i. e. this is where the > problem happens? > > I doubt that. > > lwmon5 which has this nasty 100 ms watchdog (actually 80 ms including > allowable tolerances, IIRC) is running at 115bps. > > In theory, it would take a string of more than 900 characters for > puts() to exceeding this delay, but all strings ever printed in U-Boot > are way shorter. Just my 2 cents: I don't know if that system has hardware handshake, and if that's enable. But a missing CTS could stop output indefinitely. Or a receiving terminal program might use CTS to halt output when its somewhat busy. Just a thought for a possible scenario... Best Regards, Reinhard