mtd: rawnand: qcom: avoid write to unavailable register
authorSivaprakash Murugesan <sivaprak@codeaurora.org>
Fri, 12 Jun 2020 07:58:15 +0000 (13:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 07:48:15 +0000 (09:48 +0200)
commit337be2b46991cf3d5afe3dbb114440946b84fe42
treeff02083b9cf9b688f518fd0ab9ea5f27cb2c7eb1
parent2fd8f313a9fdeb06986bd2bb8caa7c87602b9729
mtd: rawnand: qcom: avoid write to unavailable register

commit 443440cc4a901af462239d286cd10721aa1c7dfc upstream.

SFLASHC_BURST_CFG is only available on older ipq NAND platforms, this
register has been removed when the NAND controller got implemented in
the qpic controller.

Avoid writing this register on devices which are based on qpic NAND
controller.

Fixes: dce84760b09f ("mtd: nand: qcom: Support for IPQ8074 QPIC NAND controller")
Cc: stable@vger.kernel.org
Signed-off-by: Sivaprakash Murugesan <sivaprak@codeaurora.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/1591948696-16015-2-git-send-email-sivaprak@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/qcom_nandc.c