Re: [PATCH v8 02/19] spi: spi-mem: allow specifying a command's extension

2020-05-24 Thread Boris Brezillon
On Sat, 23 May 2020 04:10:25 +0530 Pratyush Yadav wrote: > diff --git a/drivers/spi/spi-mxic.c b/drivers/spi/spi-mxic.c > index 69491f3a515d..4e4292f0ee1d 100644 > --- a/drivers/spi/spi-mxic.c > +++ b/drivers/spi/spi-mxic.c > @@ -356,6 +356,7 @@ static int mxic_spi_mem_exec_op(struct spi_mem

[PATCH v8 02/19] spi: spi-mem: allow specifying a command's extension

2020-05-22 Thread Pratyush Yadav
In xSPI mode, flashes expect 2-byte opcodes. The second byte is called the "command extension". There can be 3 types of extensions in xSPI: repeat, invert, and hex. When the extension type is "repeat", the same opcode is sent twice. When it is "invert", the second byte is the inverse of the