]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: bitbang: Implement support for MOSI idle state configuration
authorMarcelo Schmitt <marcelo.schmitt@analog.com>
Fri, 12 Jul 2024 19:21:03 +0000 (16:21 -0300)
committerMark Brown <broonie@kernel.org>
Mon, 29 Jul 2024 00:19:52 +0000 (01:19 +0100)
commit320f6693097bf89d67f9cabad24a2b911e23073f
treeb610bb0441ae4a9271df6686cc53b64714044288
parentf58872f45c36ded048bccc22701b0986019c24d8
spi: bitbang: Implement support for MOSI idle state configuration

Some SPI peripherals may require strict MOSI line state when the controller
is not clocking out data. Implement support for MOSI idle state
configuration (low or high) by setting the data output line level on
controller setup and after transfers. Bitbang operations now call
controller specific set_mosi_idle() callback to set MOSI to its idle state.
The MOSI line is kept at its idle state if no tx buffer is provided.

Acked-by: Nuno Sa <nuno.sa@analog.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
Link: https://patch.msgid.link/de61a600b56ed9cb714d5ea87afa88948e70041e.1720810545.git.marcelo.schmitt@analog.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bitbang.c
include/linux/spi/spi_bitbang.h