Re: [PATCH v6 2/7] spi: bitbang: Implement support for MOSI idle state configuration
From: David Lechner
Date: Mon Jul 08 2024 - 17:19:22 EST
On 6/29/24 2:05 PM, Marcelo Schmitt wrote:
> 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() call back
> 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@xxxxxxxxxx>
> Reviewed-by: David Lechner <dlechner@xxxxxxxxxxxx>
> Signed-off-by: Marcelo Schmitt <marcelo.schmitt@xxxxxxxxxx>
> ---
FYI, this doesn't apply cleanly to spi-next and needs to be rebased.
(conflicts with https://lore.kernel.org/all/20240517194104.747328-3-andriy.shevchenko@xxxxxxxxxxxxxxx/)