Re: [PATCH v6 06/10] mtd: spi-nor: simplify write loop

2015-12-15 Thread Michal Suchanek
On 15 December 2015 at 21:22, Han Xu wrote: > On Wed, Dec 02, 2015 at 10:38:20AM +, Michal Suchanek wrote: >> The spi-nor write loop assumes that what is passed to the hardware >> driver write() is what gets written. >> >> When write() writes less than page size at once data is dropped on the

Re: [PATCH v6 06/10] mtd: spi-nor: simplify write loop

2015-12-15 Thread Han Xu
On Wed, Dec 02, 2015 at 10:38:20AM +, Michal Suchanek wrote: > The spi-nor write loop assumes that what is passed to the hardware > driver write() is what gets written. > > When write() writes less than page size at once data is dropped on the > floor. Check the amount of data writen and exit