mtd: rawnand: qcom: avoid writing to obsolete register
authorMd Sadre Alam <mdalam@codeaurora.org>
Tue, 8 Jun 2021 06:48:36 +0000 (12:18 +0530)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 18 Jun 2021 07:45:21 +0000 (09:45 +0200)
commitbfb34eced5595ee137e46d83d12b50d4ef6fc0c9
treeca2bc3db610aac447224ed784cb9f513da174cd0
parentf856c4e9cf22471b956d2b026a71fa2bf7f4d05a
mtd: rawnand: qcom: avoid writing to obsolete register

QPIC_EBI2_ECC_BUF_CFG register got obsolete from QPIC V2.0 onwards.
Avoid writing this register if QPIC version is V2.0 or newer.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/1623134916-562-1-git-send-email-mdalam@codeaurora.org
drivers/mtd/nand/raw/qcom_nandc.c