]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: spi-nor: Support controllers with limited TX FIFO size
authorYogesh Gaur <yogeshnarayan.gaur@nxp.com>
Wed, 13 Jun 2018 06:08:12 +0000 (11:38 +0530)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 8 Oct 2018 19:28:27 +0000 (21:28 +0200)
commit41a9aaefc5f711ba90901f7335a30f2b5debf833
tree323fb4fc33d83b2834bee8250e5e21ec34afb031
parent9b4a9eb23e9faa7248ad6b8c3e08d929c814c728
mtd: spi-nor: Support controllers with limited TX FIFO size

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 <yogeshnarayan.gaur@nxp.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/spi-nor/spi-nor.c