i3c: fix ccc setmrl/setmwl helper addr

i3c CCC SETMRL/SETMWL were using the static addr, the
dynamic address must be used

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
This commit is contained in:
Ryan McClelland 2022-10-13 10:34:16 -07:00 committed by Anas Nashif
parent 7f00371948
commit ce6da0fb51

View file

@ -222,7 +222,7 @@ int i3c_ccc_do_setmwl(const struct i3c_device_desc *target,
memset(&ccc_payload, 0, sizeof(ccc_payload)); memset(&ccc_payload, 0, sizeof(ccc_payload));
ccc_tgt_payload.addr = target->static_addr; ccc_tgt_payload.addr = target->dynamic_addr;
ccc_tgt_payload.rnw = 0; ccc_tgt_payload.rnw = 0;
ccc_tgt_payload.data = &data[0]; ccc_tgt_payload.data = &data[0];
ccc_tgt_payload.data_len = sizeof(data); ccc_tgt_payload.data_len = sizeof(data);
@ -309,7 +309,7 @@ int i3c_ccc_do_setmrl(const struct i3c_device_desc *target,
memset(&ccc_payload, 0, sizeof(ccc_payload)); memset(&ccc_payload, 0, sizeof(ccc_payload));
ccc_tgt_payload.addr = target->static_addr; ccc_tgt_payload.addr = target->dynamic_addr;
ccc_tgt_payload.rnw = 0; ccc_tgt_payload.rnw = 0;
ccc_tgt_payload.data = &data[0]; ccc_tgt_payload.data = &data[0];