]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: reset: Allow reset_walk() to return
authorSimon Glass <sjg@chromium.org>
Mon, 6 Jul 2015 18:54:27 +0000 (12:54 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 21 Jul 2015 23:39:31 +0000 (17:39 -0600)
commit1704d083b3a1acfe167dc2e3b687263f05a65087
treef2c6f522410a574ae46fa0ac871b1935cc7b73a0
parentdc6f4d3a55c7e26af6b0cd41bcd9486b16a1ab9e
dm: reset: Allow reset_walk() to return

Add a new reset_walk_halt() function to cause a reset and then halt on
failure. The reset_walk() function returns an error code.

This is needed for testing since otherwise U-Boot will halt in the middle
of a test.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/misc/reset-uclass.c
include/reset.h