From: Tom Rini Date: Fri, 1 Apr 2016 22:00:41 -0400 Subject: [U-Boot] [U-Boot, v2, 6/7] kc1: Proper reboot mode and boot reason validation In-Reply-To: <1459253787-14577-6-git-send-email-contact@paulk.fr> References: <1459253787-14577-6-git-send-email-contact@paulk.fr> Message-ID: <20160402020041.GS23166@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Mar 29, 2016 at 02:16:26PM +0200, Paul Kocialkowski wrote: > With the previous implementation, rebooting without registering a recognized > reboot mode would end up with U-Boot checking for a valid power-on reason, which > might result in the device turning off (e.g. with no USB cable attached and no > buttons pressed). > > Since this approach is not viable (breaks reboot in most cases), the validity of > the reboot reason is checked (in turn, by checking that a warm reset happened, > as there is no magic) to detect a reboot and the 'o' char is recognized to > indicate that power-off is required. Still, that might be overridden by the > detection of usual power-on reasons, on purpose. > > Signed-off-by: Paul Kocialkowski Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: