diff options
author | David Lechner <dlechner@baylibre.com> | 2024-01-25 17:47:31 -0600 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-01-26 14:35:43 +0000 |
commit | 0da9a5794cfda615668eaefde811e8ef378134fe (patch) | |
tree | dd9ae1bcf297458dadcdfe6e795038a09d8edf47 /drivers/spi/Kconfig | |
parent | a6fc5c5b35f688480167a7a7947ddd91c07e72c8 (diff) |
spi: avoid double validation in __spi_sync()
The __spi_sync() function calls __spi_validate() early in the function.
Later, it can call spi_async_locked() which calls __spi_validate()
again. __spi_validate() is an expensive function, so we can improve
performance measurably by avoiding calling it twice.
Instead of calling spi_async_locked(), we can call __spi_async() with
the spin lock held.
spi_async_locked() is removed since there are no more callers.
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://msgid.link/r/20240125234732.3530278-2-dlechner@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/Kconfig')
0 files changed, 0 insertions, 0 deletions