diff options
author | Prashant Malani <[email protected]> | 2023-01-13 18:26:26 +0000 |
---|---|---|
committer | Prashant Malani <[email protected]> | 2023-01-24 19:02:38 +0000 |
commit | 478f32ab4daae8a9bae3723d1040c6e4e3a09bc5 (patch) | |
tree | 75759d76e8d1a781a5731b11129899b8f463b18e /tools/perf/scripts | |
parent | 13aba1e532f047459a683f76439ad90fb29eab05 (diff) |
platform/chrome: cros_typec_vdm: Fix VDO copy
The usage of memcpy() affects the representation of the VDOs as they are
copied to the EC Host Command buffer. Specifically, all higher order
bits get dropped (for example: a VDO of 0x406 just gets copied as 0x6).
Avoid this by explicitly copying each VDO in the array. The number of
VDOs generated by alternate mode drivers in their VDMs is almost always
just 1 (apart from the header) so this doesn't affect performance in a
meaningful way).
Fixes: 40a9b13a09ef ("platform/chrome: cros_typec_vdm: Add VDM send support")
Signed-off-by: Prashant Malani <[email protected]>
Reviewed-by: Benson Leung <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Prashant Malani <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions