mtd: rawnand: qcom: avoid write to unavailable register
commita8e9efb55323b638806b4db2560b7ea6807039e7
authorSivaprakash Murugesan <sivaprak@codeaurora.org>
Fri, 12 Jun 2020 07:58:15 +0000 (12 13:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:16:25 +0000 (19 08:16 +0200)
tree766e1f07fc3b01845bd9e82d50ce9725942dba7c
parent7ebb8fd40256e4b661b5d3a38fbbf4c404205fc5
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/raw/qcom_nandc.c