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

2020-12-03 Thread Mark Brown
On Thu, Dec 03, 2020 at 08:20:57AM +, Ardelean, Alexandru wrote: > > > > @@ -43,5 +43,7 @@ > > > > #defineSPI_TX_OCTAL0x2000 /* transmit > > > > with 8 wires */ > > > > #defineSPI_RX_OCTAL0x4000 /* receive with > > > > 8 wires */ >

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

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

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

2020-11-27 Thread Andy Shevchenko
On Fri, Nov 27, 2020 at 4:22 PM Andy Shevchenko wrote: > On Fri, Nov 27, 2020 at 3:08 PM Alexandru Ardelean > wrote: ... > > --- a/include/uapi/linux/spi/spi.h > > +++ b/include/uapi/linux/spi/spi.h > > @@ -43,5 +43,7 @@ > > #defineSPI_TX_OCTAL0x2000 /* transmit wi

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

2020-11-27 Thread Andy Shevchenko
On Fri, Nov 27, 2020 at 3:08 PM Alexandru Ardelean wrote: > 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 driv

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

2020-11-27 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