summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHonghui Jiang <jiang_hh2019@163.com>2026-08-14 11:14:17 +0800
committerMark Brown <broonie@kernel.org>2026-08-14 16:48:51 +0100
commitaf6aaacd42f74e2139391f9853d770d61ac430ce (patch)
tree1e1e92c30ce8a761a1cb6dfcbc529152adf6a69d /tools/perf/scripts/python
parentb82b2dfc93d3c7729250e1107b7121775f5dfd40 (diff)
spi: Clear current DMA devices when unmapping a message
The current DMA device pointers remain set after a message has been unmapped. Existing users either check the corresponding mapped flag or access the pointers before finalizing the message, but retaining stale device pointers is fragile. Clear both pointers in spi_unmap_msg() after the internal unmap completes. Keep them intact in __spi_unmap_msg(), since that helper is also used during partial-map unwind and the in-message DMA-to-PIO fallback, before processing of the current message is complete. Suggested-by: Andy Shevchenko <andy@kernel.org> Signed-off-by: Honghui Jiang <jiang_hh2019@163.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20260814031419.43378-4-jiang_hh2019@163.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions