Re: [PATCH v5 3/3] mtd: spi-nor: Rework hwcaps selection for the spi-mem case

2019-08-06 Thread Tudor.Ambarus
On 08/06/2019 08:10 AM, Vignesh Raghavendra wrote: > +static int spi_nor_spimem_check_op(struct spi_nor *nor, > +struct spi_mem_op *op) > +{ > + /* > + * First test with 4 address bytes. The opcode itself might > + * be a 3B addressing opcode but we d

[PATCH v5 3/3] mtd: spi-nor: Rework hwcaps selection for the spi-mem case

2019-08-05 Thread Vignesh Raghavendra
From: Boris Brezillon The spi-mem layer provides a spi_mem_supports_op() function to check whether a specific operation is supported by the controller or not. This is much more accurate than the hwcaps selection logic based on SPI_{RX,TX}_ flags. Rework the hwcaps selection logic to use spi_mem_