Re: [U-Boot] [PATCH 1/5] mtd: spi-nor: fix page program issue when using spi-mem driver

2019-05-03 Thread Jagan Teki
On Fri, Apr 26, 2019 at 2:53 PM Weijie Gao wrote: > > Some SPI controllers can't write nor->page_size bytes in a single step > because their TX FIFO is too small, but when that happens we should > make sure a WRITE_EN command before each write access and READ_SR command > after each write access

Re: [U-Boot] [PATCH 1/5] mtd: spi-nor: fix page program issue when using spi-mem driver

2019-05-01 Thread Shyam Saini
Hi Weijie, > Some SPI controllers can't write nor->page_size bytes in a single step > because their TX FIFO is too small, but when that happens we should > make sure a WRITE_EN command before each write access and READ_SR command > after each write access is issued. > > We should allow

Re: [U-Boot] [PATCH 1/5] mtd: spi-nor: fix page program issue when using spi-mem driver

2019-04-29 Thread Vignesh Raghavendra
Hi, +Jagan On 26/04/19 2:52 PM, Weijie Gao wrote: > Some SPI controllers can't write nor->page_size bytes in a single step > because their TX FIFO is too small, but when that happens we should > make sure a WRITE_EN command before each write access and READ_SR command > after each write access

[U-Boot] [PATCH 1/5] mtd: spi-nor: fix page program issue when using spi-mem driver

2019-04-26 Thread Weijie Gao
Some SPI controllers can't write nor->page_size bytes in a single step because their TX FIFO is too small, but when that happens we should make sure a WRITE_EN command before each write access and READ_SR command after each write access is issued. We should allow nor->write() to return a size