mtd: rawnand: diskonchip: Make sure doc2001plus_readbuf() works for single byte reads
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 1 May 2020 14:39:13 +0000 (16:39 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 11 May 2020 07:51:43 +0000 (09:51 +0200)
commita50b0c20bedcf10599708bed1608209274899053
tree19aba6ae164c080f116e4f8e62c3bc8c05df4504
parentdace12ccfd08793a393d6933d2b95af5db7e46ec
mtd: rawnand: diskonchip: Make sure doc2001plus_readbuf() works for single byte reads

Single byte accesses normally go through read_byte() but we are about
to use this function in the exec_op() implementation and thus needs to
prepare for single byte reads.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200501143917.1388957-2-boris.brezillon@collabora.com
drivers/mtd/nand/raw/diskonchip.c