Re: [PATCH] mtd: spi-nor: Support controllers with limited TX FIFO size

2018-10-03 Thread Boris Brezillon
On Wed, 13 Jun 2018 11:38:12 +0530 Yogesh Gaur wrote: > Some SPI controllers can't write nor->page_size bytes in a single > step because their TX FIFO is too small. > > Allow nor->write() to return a size that is smaller than the requested > write size to gracefully handle this case. > >

Re: [PATCH] mtd: spi-nor: Support controllers with limited TX FIFO size

2018-10-03 Thread Boris Brezillon
On Wed, 13 Jun 2018 11:38:12 +0530 Yogesh Gaur wrote: > Some SPI controllers can't write nor->page_size bytes in a single > step because their TX FIFO is too small. > > Allow nor->write() to return a size that is smaller than the requested > write size to gracefully handle this case. > >

Re: [PATCH] mtd: spi-nor: Support controllers with limited TX FIFO size

2018-09-18 Thread Boris Brezillon
On Tue, 18 Sep 2018 12:51:51 +0200 Frieder Schrempf wrote: > I want to revive the discussion about this patch. Meanwhile we have > received confirmation from NXP, that the hardware can't handle writing > data chunks bigger than the TX buffer size, even when we use DMA to > refill the buffer

Re: [PATCH] mtd: spi-nor: Support controllers with limited TX FIFO size

2018-09-18 Thread Boris Brezillon
On Tue, 18 Sep 2018 12:51:51 +0200 Frieder Schrempf wrote: > I want to revive the discussion about this patch. Meanwhile we have > received confirmation from NXP, that the hardware can't handle writing > data chunks bigger than the TX buffer size, even when we use DMA to > refill the buffer

Re: [PATCH] mtd: spi-nor: Support controllers with limited TX FIFO size

2018-09-18 Thread Frieder Schrempf
Hi Marek, hi Boris, On 09.07.2018 23:34, Boris Brezillon wrote: +Fabio Hi Yogesh, On Wed, 13 Jun 2018 11:38:12 +0530 Yogesh Gaur wrote: Some SPI controllers can't write nor->page_size bytes in a single step because their TX FIFO is too small. Allow nor->write() to return a size that is

Re: [PATCH] mtd: spi-nor: Support controllers with limited TX FIFO size

2018-09-18 Thread Frieder Schrempf
Hi Marek, hi Boris, On 09.07.2018 23:34, Boris Brezillon wrote: +Fabio Hi Yogesh, On Wed, 13 Jun 2018 11:38:12 +0530 Yogesh Gaur wrote: Some SPI controllers can't write nor->page_size bytes in a single step because their TX FIFO is too small. Allow nor->write() to return a size that is

Re: [PATCH] mtd: spi-nor: Support controllers with limited TX FIFO size

2018-07-09 Thread Boris Brezillon
+Fabio Hi Yogesh, On Wed, 13 Jun 2018 11:38:12 +0530 Yogesh Gaur wrote: > Some SPI controllers can't write nor->page_size bytes in a single > step because their TX FIFO is too small. > > Allow nor->write() to return a size that is smaller than the requested > write size to gracefully handle

Re: [PATCH] mtd: spi-nor: Support controllers with limited TX FIFO size

2018-07-09 Thread Boris Brezillon
+Fabio Hi Yogesh, On Wed, 13 Jun 2018 11:38:12 +0530 Yogesh Gaur wrote: > Some SPI controllers can't write nor->page_size bytes in a single > step because their TX FIFO is too small. > > Allow nor->write() to return a size that is smaller than the requested > write size to gracefully handle

[PATCH] mtd: spi-nor: Support controllers with limited TX FIFO size

2018-06-13 Thread Yogesh Gaur
Some SPI controllers can't write nor->page_size bytes in a single step because their TX FIFO is too small. Allow nor->write() to return a size that is smaller than the requested write size to gracefully handle this case. Signed-off-by: Yogesh Gaur --- drivers/mtd/spi-nor/spi-nor.c | 7 ---

[PATCH] mtd: spi-nor: Support controllers with limited TX FIFO size

2018-06-13 Thread Yogesh Gaur
Some SPI controllers can't write nor->page_size bytes in a single step because their TX FIFO is too small. Allow nor->write() to return a size that is smaller than the requested write size to gracefully handle this case. Signed-off-by: Yogesh Gaur --- drivers/mtd/spi-nor/spi-nor.c | 7 ---