Re: [PATCH 1/2] mtd: spi-nor: rework spi nor read and write.

2015-07-29 Thread Marek Vasut
On Wednesday, July 29, 2015 at 06:16:21 AM, Michal Suchanek wrote: > On 28 July 2015 at 20:15, Marek Vasut wrote: > > On Tuesday, July 28, 2015 at 11:23:02 AM, Michal Suchanek wrote: > >> The spi_nor read and write functions pass thru the mtd retlen to the > >> chip-specific read and write functio

Re: [PATCH 1/2] mtd: spi-nor: rework spi nor read and write.

2015-07-28 Thread Michal Suchanek
On 28 July 2015 at 20:15, Marek Vasut wrote: > On Tuesday, July 28, 2015 at 11:23:02 AM, Michal Suchanek wrote: >> The spi_nor read and write functions pass thru the mtd retlen to the >> chip-specific read and write function. This makes it difficult to check >> for errors in read and write functio

Re: [PATCH 1/2] mtd: spi-nor: rework spi nor read and write.

2015-07-28 Thread Marek Vasut
On Tuesday, July 28, 2015 at 11:23:02 AM, Michal Suchanek wrote: > The spi_nor read and write functions pass thru the mtd retlen to the > chip-specific read and write function. This makes it difficult to check > for errors in read and write functions and these errors are not checked. > This leads t