Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Simon Glass's avatar
    b7a1d134
    bootm: Handle errors consistently · b7a1d134
    Simon Glass authored
    
    A recent bootm fix left the error path incomplete. If CONFIG_TRACE is
    set it may still not be a supported command, so cover that with the
    unsupported subcommand print.  Once we handle BOOTM_STATE_OS_GO, we can
    just move into the error handler itself, no need for a goto there.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    [trini: Update slightly based on Simon's changes to also cover
    CONFIG_TRACE/BOOTM_STATE_FAKE_OS_GO]
    Signed-off-by: default avatarTom Rini <trini@ti.com>
    b7a1d134
    History
    bootm: Handle errors consistently
    Simon Glass authored
    
    A recent bootm fix left the error path incomplete. If CONFIG_TRACE is
    set it may still not be a supported command, so cover that with the
    unsupported subcommand print.  Once we handle BOOTM_STATE_OS_GO, we can
    just move into the error handler itself, no need for a goto there.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    [trini: Update slightly based on Simon's changes to also cover
    CONFIG_TRACE/BOOTM_STATE_FAKE_OS_GO]
    Signed-off-by: default avatarTom Rini <trini@ti.com>