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

Svyatoslav Ryhel clamor95 at gmail.com
Fri Jul 3 10:39:16 CEST 2026


пт, 3 лип. 2026 р. о 04:49 James Hilliard <james.hilliard1 at gmail.com> пише:
>
> 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>
> ---
> Changes v1 -> v2:
>   - Limit the patch to the argv parsing fix  (suggested by Simon Glass)
>   - State that the commands always returned usage  (suggested by Simon Glass)
>   - Add a Fixes tag  (suggested by Simon Glass)
> ---
>  cmd/aes.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>

Good catch!

Reviewed-by: Svyatoslav Ryhel <clamor95 at gmail.com>


More information about the U-Boot mailing list