aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorDavid Lechner <[email protected]>2024-02-19 16:33:19 -0600
committerMark Brown <[email protected]>2024-02-26 13:55:11 +0000
commitfab53fea21a909e4e0656764a8ee7c356fe89d6f (patch)
tree74422173750cff6eff702ef7da1e9f4b5be8be09 /scripts/bpf_doc.py
parent7b1d87af14d9ae902ed0c5dc5fabf4eea5abdf02 (diff)
spi: move splitting transfers to spi_optimize_message()
Splitting transfers is an expensive operation so we can potentially optimize it by doing it only once per optimization of the message instead of repeating each time the message is transferred. The transfer splitting functions are currently the only user of spi_res_alloc() so spi_res_release() can be safely moved at this time from spi_finalize_current_message() to spi_unoptimize_message(). The doc comments of the public functions for splitting transfers are also updated so that callers will know when it is safe to call them to ensure proper resource management. Reviewed-by: Jonathan Cameron <[email protected]> Signed-off-by: David Lechner <[email protected]> Link: https://msgid.link/r/20240219-mainline-spi-precook-message-v2-2-4a762c6701b9@baylibre.com Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions