Skip to content

Commit

Permalink
drivers: i3c: shell: record crcaps and crhdly1 in to desc from shell
Browse files Browse the repository at this point in the history
Record the crcaps and crhdly1 in to the i3c descriptor when calling from
the shell.

Signed-off-by: Ryan McClelland <[email protected]>
  • Loading branch information
XenuIsWatching committed Nov 2, 2024
1 parent ba246db commit 2864abe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/i3c/i3c_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 2864abe

Please sign in to comment.