mtd: rawnand: qcom: allow override of partition parser
authorBaruch Siach <baruch@tkos.co.il>
Wed, 21 Apr 2021 18:31:09 +0000 (21:31 +0300)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 10 May 2021 09:58:58 +0000 (11:58 +0200)
commit21020becdf0ce946d3fc2c4bf4da33453affcd5a
tree6c64e66c2e6b5d45ae33af5352d12c7fe04ae718
parent4d888eceb725216305eee595ff5d068112cf7c15
mtd: rawnand: qcom: allow override of partition parser

Commit 82bfd11f1b03 ("mtd: rawnand: qcom: Add support for Qcom SMEM
parser") made qcomsmem the only parser for qcom_nandc partitions. This
might be problematic for systems with both SPI and NAND MTD devices.
When booting from SPI flash the partition table should not apply to the
NAND flash.

Prepend cmdlinepart and ofpart parsers to allow override of the
partition parser.

Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/cf470f05af514acd5bd94548804ffa96b966a0a8.1619029869.git.baruch@tkos.co.il
drivers/mtd/nand/raw/qcom_nandc.c