]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bus: fsl-mc: fix GET/SET_TAILDROP command ids
authorWan Junjie <junjie.wan@inceptio.ai>
Tue, 8 Apr 2025 10:58:11 +0000 (13:58 +0300)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 12 May 2025 23:34:57 +0000 (01:34 +0200)
Command ids for taildrop get/set can not pass the check when they are
using from the restool user space utility. Correct them according to the
user manual.

Fixes: d67cc29e6d1f ("bus: fsl-mc: list more commands as accepted through the ioctl")
Signed-off-by: Wan Junjie <junjie.wan@inceptio.ai>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Cc: stable@vger.kernel.org
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/20250408105814.2837951-4-ioana.ciornei@nxp.com
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
drivers/bus/fsl-mc/fsl-mc-uapi.c

index 9c4c1395fcdbf26a8c4ddaae0a948260e9e76d3d..a376ec66165348654b1c326f1940640893dbc14a 100644 (file)
@@ -275,13 +275,13 @@ static struct fsl_mc_cmd_desc fsl_mc_accepted_cmds[] = {
                .size = 8,
        },
        [DPSW_GET_TAILDROP] = {
-               .cmdid_value = 0x0A80,
+               .cmdid_value = 0x0A90,
                .cmdid_mask = 0xFFF0,
                .token = true,
                .size = 14,
        },
        [DPSW_SET_TAILDROP] = {
-               .cmdid_value = 0x0A90,
+               .cmdid_value = 0x0A80,
                .cmdid_mask = 0xFFF0,
                .token = true,
                .size = 24,