Re: [PATCH v5 2/3] mtd: spi-nor: Move m25p80 code in spi-nor.c

2019-08-09 Thread Vignesh Raghavendra
Hi Tomer, On 08/08/19 3:35 PM, Tomer Maimon wrote: > > Hi Vignesh, > > Thanks for working on the spi-nor patches. > > I have tested your latest patches with NPCM FIU driver on two different > Flashes: > > 1.  Winbond w25q256 - 32MB > 2.  Macronix mx25l3205d- 4MB > > Sorry I going to a vacatio

Re: [PATCH v5 2/3] mtd: spi-nor: Move m25p80 code in spi-nor.c

2019-08-08 Thread Boris Brezillon
On Thu, 8 Aug 2019 17:44:35 +0300 Tomer Maimon wrote: > Hi Boris, > > On Thu, 8 Aug 2019 at 17:04, Boris Brezillon > wrote: > > > Hi Tomer, > > > > On Thu, 8 Aug 2019 13:05:14 +0300 > > Tomer Maimon wrote: > > > > > @@ -688,6 +1003,16 @@ static int spi_nor_erase_sector(struct spi_nor > >

Re: [PATCH v5 2/3] mtd: spi-nor: Move m25p80 code in spi-nor.c

2019-08-08 Thread Boris Brezillon
Hi Tomer, On Thu, 8 Aug 2019 13:05:14 +0300 Tomer Maimon wrote: > @@ -688,6 +1003,16 @@ static int spi_nor_erase_sector(struct spi_nor *nor, > > u32 addr) > > if (nor->erase) > > return nor->erase(nor, addr); > > > > + if (nor->spimem) { > > + struct s

[PATCH v5 2/3] mtd: spi-nor: Move m25p80 code in spi-nor.c

2019-08-05 Thread Vignesh Raghavendra
From: Boris Brezillon The m25p80 driver is actually a generic wrapper around the spi-mem layer. Not only the driver name is misleading, but we'd expect such a common logic to be directly available in the core. Another reason for moving this code is that SPI NOR controller drivers should progressi