]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: Init the EC properly even if no state file is available
authorSimon Glass <sjg@chromium.org>
Tue, 26 Sep 2023 14:14:48 +0000 (08:14 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 6 Oct 2023 18:38:13 +0000 (14:38 -0400)
commita64fec9f1760edfcea904306f6fbcd13b464b3f1
treef8b9eb577f766937ae64dd44ae19f8e545ca382f
parentd02c6f57ab7fb27f0bde41906eb02ae73553e98a
sandbox: Init the EC properly even if no state file is available

This currently relies on sandbox attempting to read a state file. At
present it always does, even when there is no state file, in which case it
fails, but still inits the EC.

That is a bug, so update this driver to set the current image always, even
if no state is read.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/misc/cros_ec_sandbox.c