From: Mike Frysinger Date: Wed, 19 Oct 2011 17:55:19 -0400 Subject: [U-Boot] [PATCH 2/3] mpc85xx: Add a board-specific restart hook In-Reply-To: <8B4AC84D-1F22-4326-B75A-FB3CC39A5CF7@boeing.com> References: <1318981284-4357-1-git-send-email-Kyle.D.Moffett@boeing.com> <20111019203542.5538714094B3@gemini.denx.de> <8B4AC84D-1F22-4326-B75A-FB3CC39A5CF7@boeing.com> Message-ID: <201110191755.20800.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday 19 October 2011 17:05:12 Moffett, Kyle D wrote: > On Oct 19, 2011, at 16:35, Wolfgang Denk wrote: > > Moffett, Kyle D wrote: > >> Since "reset" is basically just like any other U-Boot shell command, > > > > No, it ain't. > > > >> (except with some side-effects) it seems reasonable to allow a board > >> handler to return an error instead of resetting. > > > > No. Reset will never return. It is supposed to hard reset the board, > > which means crossing the point of no return. > > Ok. > > By that definition, my board cannot safely use U-Boot's "reset" command. > > Would you accept a patch which makes it possible for a board to not > implement a "reset" command at all? > > There are a few places in common/cmd_bootm.c which are converted to use > panic("...") instead of printf("...")+do_reset(). i guess i'm dumb, but i don't understand why it can't be made to work on your board. but worse comes to worse, you could have your board reset call hang() or panic() ... -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20111019/3a76bd69/attachment.pgp