aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorRichard Fitzgerald <[email protected]>2022-09-16 11:35:05 +0100
committerVinod Koul <[email protected]>2022-09-20 10:30:47 +0530
commitba05b39d265bdd16913f7684600d9d41e2796745 (patch)
tree85f8a4ddc083cdecddae4760146c6939e033a06b /tools/perf/scripts/python/exported-sql-viewer.py
parent72124f07f0fab446caeea1f545d8c58b7549a899 (diff)
soundwire: cadence: Don't overwrite msg->buf during write commands
The buf passed in struct sdw_msg must only be written for a READ, in that case the RDATA part of the response is the data value of the register. For a write command there is no RDATA, and buf should be assumed to be const and unmodifable. The original caller should not expect its data buffer to be corrupted by an sdw_nwrite(). Signed-off-by: Richard Fitzgerald <[email protected]> Reviewed-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions