Re: [U-Boot] [PATCH 09/16] sf_mtd: Simply mtd operations

2018-12-13 Thread Stefan Roese
On 13.12.18 09:24, Vignesh R wrote: Boris, Stefan, Daniel On 12/12/18 11:02 PM, Vignesh R wrote: Now that there is new SPI NOR framework, simplify mtd device registration and read/write/erase operations. Signed-off-by: Vignesh R --- Oops, sorry I messed up rebase-ing this patch onto latest

Re: [U-Boot] [PATCH 09/16] sf_mtd: Simply mtd operations

2018-12-13 Thread Vignesh R
Boris, Stefan, Daniel On 12/12/18 11:02 PM, Vignesh R wrote: > Now that there is new SPI NOR framework, simplify mtd device > registration and read/write/erase operations. > > Signed-off-by: Vignesh R > --- Oops, sorry I messed up rebase-ing this patch onto latest mainline. At this time it look

Re: [U-Boot] [PATCH 09/16] sf_mtd: Simply mtd operations

2018-12-12 Thread Stefan Roese
Hi Vignesh, On 12.12.18 18:32, Vignesh R wrote: Now that there is new SPI NOR framework, simplify mtd device registration and read/write/erase operations. Signed-off-by: Vignesh R --- drivers/mtd/spi/sf_internal.h | 2 +- drivers/mtd/spi/sf_mtd.c | 52 ++---

Re: [U-Boot] [PATCH 09/16] sf_mtd: Simply mtd operations

2018-12-12 Thread Daniel Schwierzeck
Am 12.12.18 um 18:32 schrieb Vignesh R: > Now that there is new SPI NOR framework, simplify mtd device > registration and read/write/erase operations. > > Signed-off-by: Vignesh R > --- > drivers/mtd/spi/sf_internal.h | 2 +- > drivers/mtd/spi/sf_mtd.c | 52 ++

Re: [U-Boot] [PATCH 09/16] sf_mtd: Simply mtd operations

2018-12-12 Thread Boris Brezillon
On Wed, 12 Dec 2018 23:02:21 +0530 Vignesh R wrote: > @@ -39,13 +37,12 @@ static int spi_flash_mtd_erase(struct mtd_info *mtd, > struct erase_info *instr) > static int spi_flash_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, > size_t *retlen, u_char *buf) > { > - struct spi_

[U-Boot] [PATCH 09/16] sf_mtd: Simply mtd operations

2018-12-12 Thread Vignesh R
Now that there is new SPI NOR framework, simplify mtd device registration and read/write/erase operations. Signed-off-by: Vignesh R --- drivers/mtd/spi/sf_internal.h | 2 +- drivers/mtd/spi/sf_mtd.c | 52 ++- drivers/mtd/spi/sf_probe.c| 5 ++-- 3 files