[PATCH v2 01/10] cmd: aes: fix DM operation handling

Simon Glass sjg at chromium.org
Thu Jul 9 20:36:16 CEST 2026


On 2026-07-03T01:49:45, James Hilliard <james.hilliard1 at gmail.com> wrote:
> cmd: aes: fix DM operation handling
>
> The DM AES command path takes operation-specific arguments after the
> common arguments. argv[1] holds the mode, 'ecb' or 'cbc', while argv[2]
> holds the requested operation, 'enc' or 'dec'.
>
> The DM path checked argv[1] for the operation, so the ecb and cbc
> commands always returned CMD_RET_USAGE before running. Parse argv[2]
> instead.
>
> Fixes: b01444aa14cf ("cmd: aes: Add support for DM AES drivers")
> Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
> Reviewed-by: Svyatoslav Ryhel <clamor95 at gmail.com>
>
> cmd/aes.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list