From 2864abeef0ca878fd7579c68a5ebef5f638436ec Mon Sep 17 00:00:00 2001 From: Ryan McClelland Date: Fri, 13 Sep 2024 22:38:41 -0700 Subject: [PATCH] drivers: i3c: shell: record crcaps and crhdly1 in to desc from shell Record the crcaps and crhdly1 in to the i3c descriptor when calling from the shell. Signed-off-by: Ryan McClelland --- drivers/i3c/i3c_shell.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/i3c/i3c_shell.c b/drivers/i3c/i3c_shell.c index d4c7f6fe70467e9..388b7389220d47d 100644 --- a/drivers/i3c/i3c_shell.c +++ b/drivers/i3c/i3c_shell.c @@ -1509,6 +1509,7 @@ static int cmd_i3c_ccc_getcaps(const struct shell *sh, size_t argc, char **argv) } else if (defbyte == GETCAPS_FORMAT_2_CRCAPS) { shell_print(sh, "CRCAPS: 0x%02x; 0x%02x", caps.fmt2.crcaps[0], caps.fmt2.crcaps[1]); + memcpy(&desc->crcaps, &caps, sizeof(desc->crcaps)); } else if (defbyte == GETCAPS_FORMAT_2_VTCAPS) { shell_print(sh, "VTCAPS: 0x%02x; 0x%02x", caps.fmt2.vtcaps[0], caps.fmt2.vtcaps[1]); @@ -1742,6 +1743,7 @@ static int cmd_i3c_ccc_getmxds(const struct shell *sh, size_t argc, char **argv) desc->data_speed.max_read_turnaround = sys_get_le24(&mxds.fmt3.wrrdturn[2]); } else if (defbyte == GETMXDS_FORMAT_3_CRHDLY) { shell_print(sh, "CRHDLY1: 0x%02x", mxds.fmt3.crhdly1); + desc->crhdly1 = mxds.fmt3.crhdly1; } } else { shell_print(sh, "GETMXDS: maxwr 0x%02x; maxrd 0x%02x; maxrdturn 0x%06x",