From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Mon, 16 Jan 2012 07:43:13 +0100 Subject: [U-Boot] [PATCH 1/3] common: add possibility for readline_into_buffer timeout In-Reply-To: <201201151235.01689.vapier@gentoo.org> References: <1326614022-24014-1-git-send-email-hs@denx.de> <1326614022-24014-2-git-send-email-hs@denx.de> <201201151235.01689.vapier@gentoo.org> Message-ID: <4F13C701.9020007@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 Hello Mike, Mike Frysinger wrote: > On Sunday 15 January 2012 02:53:40 Heiko Schocher wrote: >> --- a/common/main.c >> +++ b/common/main.c >> >> + if ((first) && (timeout)) { > > those inner parens make no sense Yep, fixed. >> + ulong start = get_timer(0); >> + ulong delay = timeout * CONFIG_SYS_HZ; > > what do you want the timeout to be in ? milliseconds ? then make that part seconds, similiar to bootdelay. > of the API (add comments to the relevant funcs), and drop the CONFIG_SYS_HZ > usage. Fix this (Do it like bootdelay is done, using endticks()) Thanks for the review. bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany