-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers: i3c: add getcaps support #71792
drivers: i3c: add getcaps support #71792
Conversation
Use the sys_get_be* macros with ccc where it can be used. Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
GETMXDS macros had typos in them. This fixes them. Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
e444270
to
37a0142
Compare
5cec6be
to
cd3f43f
Compare
cd3f43f
to
df16cd8
Compare
df16cd8
to
b2be5dc
Compare
0a74117
to
919c836
Compare
This adds the defines for getcaps format 1 and format 2. Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
Add reading of GETCAPS CCC in `i3c_device_basic_info_get`. Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
Add a shell command for the CCC GETCAPS Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
GETSTATUS and GETMRL where not checking the right argc length. This corrects it to check for the right count. Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
The CDNS will report a M0 error if the data length is not what it expects, but certain CCCs can have a variable length such as GETMXDS and GETCAPS. This sets it up to ignore the M0 error if it sees that ccc was GETMXDS or GETCAPS. Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
919c836
to
5f675b2
Compare
I made a change to the GETCAPS (GETHDRCAP) is required to be supported for I3C v1.0 targets that support HDR |
This adds support for reading of the target's advanced capabilities based on if the BCR bit is set. This also nitpicks with cleaning up the ccc c file with using byte order macros. Also, fixes the MXDS macro typos.