This is a note to let you know that I've just added the patch titled mtd: spi-nor: fsl-quadspi: fix read error for flash size larger than 16MB to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: mtd-spi-nor-fsl-quadspi-fix-read-error-for-flash-size-larger-than-16mb.patch and it can be found in the queue-4.19 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 41fe242979e463d6ad251077ded01b825a330b7e Mon Sep 17 00:00:00 2001 From: Liu Xiang <liu.xiang6@xxxxxxxxxx> Date: Tue, 28 Aug 2018 22:32:57 +0800 Subject: mtd: spi-nor: fsl-quadspi: fix read error for flash size larger than 16MB From: Liu Xiang <liu.xiang6@xxxxxxxxxx> commit 41fe242979e463d6ad251077ded01b825a330b7e upstream. If the size of spi-nor flash is larger than 16MB, the read_opcode is set to SPINOR_OP_READ_1_1_4_4B, and fsl_qspi_get_seqid() will return -EINVAL when cmd is SPINOR_OP_READ_1_1_4_4B. This can cause read operation fail. Fixes: e46ecda764dc ("mtd: spi-nor: Add Freescale QuadSPI driver") Cc: <stable@xxxxxxxxxxxxxxx> Signed-off-by: Liu Xiang <liu.xiang6@xxxxxxxxxx> Signed-off-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/mtd/spi-nor/fsl-quadspi.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/mtd/spi-nor/fsl-quadspi.c +++ b/drivers/mtd/spi-nor/fsl-quadspi.c @@ -478,6 +478,7 @@ static int fsl_qspi_get_seqid(struct fsl { switch (cmd) { case SPINOR_OP_READ_1_1_4: + case SPINOR_OP_READ_1_1_4_4B: return SEQID_READ; case SPINOR_OP_WREN: return SEQID_WREN; Patches currently in stable-queue which might be from liu.xiang6@xxxxxxxxxx are queue-4.19/mtd-spi-nor-fsl-quadspi-fix-read-error-for-flash-size-larger-than-16mb.patch