Re: [PATCH v5 2/3] spi: Add SPI_NO_TX/RX support

2020-12-21 Thread Andy Shevchenko
On Mon, Dec 21, 2020 at 4:15 PM Alexandru Ardelean wrote: > > From: Dragos Bogdan > > Transmit/receive only is a valid SPI mode. For example, the MOSI/TX line > might be missing from an ADC while for a DAC the MISO/RX line may be > optional. This patch adds these two new modes: SPI_NO_TX and >

Re: [PATCH v5 2/3] spi: Add SPI_NO_TX/RX support

2020-12-21 Thread Andy Shevchenko
On Mon, Dec 21, 2020 at 4:34 PM Andy Shevchenko wrote: > On Mon, Dec 21, 2020 at 4:15 PM Alexandru Ardelean > wrote: > > > > From: Dragos Bogdan > > > > Transmit/receive only is a valid SPI mode. For example, the MOSI/TX line > > might be missing from an ADC while for a DAC the MISO/RX line may

Re: [PATCH v5 2/3] spi: Add SPI_NO_TX/RX support

2020-12-21 Thread Andy Shevchenko
On Mon, Dec 21, 2020 at 5:19 PM Ardelean, Alexandru wrote: > > -Original Message- > > From: Andy Shevchenko > > Sent: Monday, December 21, 2020 4:37 PM > > On Mon, Dec 21, 2020 at 4:34 PM Andy Shevchenko > > wrote: ... > > One nit, though... > > > > > > - "setup: can not

RE: [PATCH v5 2/3] spi: Add SPI_NO_TX/RX support

2020-12-21 Thread Ardelean, Alexandru
> -Original Message- > From: Andy Shevchenko > Sent: Monday, December 21, 2020 4:37 PM > To: Ardelean, Alexandru > Cc: linux-spi ; devicetree > ; Linux Kernel Mailing List ker...@vger.kernel.org>; Bogdan, Dragos ; > Mark Brown ; Rob Herring > Subject:

[PATCH v5 2/3] spi: Add SPI_NO_TX/RX support

2020-12-21 Thread Alexandru Ardelean
From: Dragos Bogdan Transmit/receive only is a valid SPI mode. For example, the MOSI/TX line might be missing from an ADC while for a DAC the MISO/RX line may be optional. This patch adds these two new modes: SPI_NO_TX and SPI_NO_RX. This way, the drivers will be able to identify if any of these