пт, 3 лип. 2026 р. о 04:49 James Hilliard <[email protected]> пише: > > 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 <[email protected]> > --- > 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 <[email protected]>

