Re: [PATCH v10 12/27] mtd: spi-nor-core: Rework hwcaps selection

2021-07-28 Thread Bin Meng
Hi Pratyush, On Wed, Jul 28, 2021 at 6:44 PM Pratyush Yadav wrote: > > On 28/07/21 06:13PM, Bin Meng wrote: > > Hi Pratyush, > > > > On Sat, Jun 26, 2021 at 3:20 AM Pratyush Yadav wrote: > > > > > > The spi-mem layer provides a spi_mem_supports_op() function to check > > > whether a specific ope

Re: [PATCH v10 12/27] mtd: spi-nor-core: Rework hwcaps selection

2021-07-28 Thread Pratyush Yadav
On 28/07/21 06:13PM, Bin Meng wrote: > Hi Pratyush, > > On Sat, Jun 26, 2021 at 3:20 AM Pratyush Yadav wrote: > > > > 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 th

Re: [PATCH v10 12/27] mtd: spi-nor-core: Rework hwcaps selection

2021-07-28 Thread Bin Meng
Hi Pratyush, On Sat, Jun 26, 2021 at 3:20 AM Pratyush Yadav wrote: > > 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}_ fl

[PATCH v10 12/27] mtd: spi-nor-core: Rework hwcaps selection

2021-06-25 Thread Pratyush Yadav
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_supports_op(). To make