[PATCH 0/8] mtd: rawnand: qcom: share more common code

From: Gabor Juhos

Date: Thu Sep 24 2026 - 16:04:46 EST


In commit fdf3ee5c6e52 ("mtd: nand: Add qpic_common API file")
lots of code has benn moved from the 'qcom_nandc' driver into
the 'qpic_common' module to allow using that also from the
'spi-qpic-snand' driver. Yet, the 'qcom_nandc' driver contains
more code which could be used by the other driver.

The patches in the series generalizes several functions and a
simple structure then moves the generalized code into the
'qpic_common' module so it can be used by the two NAND drivers.

There should be no functional impact in regard to the 'qcom_nandc'
driver.

Signed-off-by: Gabor Juhos <j4g8y7@xxxxxxxxx>
---
Gabor Juhos (8):
mtd: rawnand: qcom: make check_flash_errors() more generic
mtd: rawnand: qcom: make config_nand_page_read() more generic
mtd: rawnand: qcom: make config_nand_page_write() more generic
mtd: rawnand: qcom: make config_nand_cw_write() more generic
mtd: rawnand: qcom: make nandc_set_read_loc_first() more generic
mtd: rawnand: qcom: make nandc_set_read_loc_last() more generic
mtd: rawnand: qcom: rename 'nand_stats' structure
mtd: rawnand: qcom: move common code to the 'qpic_common' module

drivers/mtd/nand/qpic_common.c | 131 +++++++++++++++++++++++++
drivers/mtd/nand/raw/qcom_nandc.c | 184 +++++------------------------------
include/linux/mtd/nand-qpic-common.h | 17 ++++
3 files changed, 172 insertions(+), 160 deletions(-)
---
base-commit: 7e874b1750a40f3dc9a629aeb72eba09c77f77e9
change-id: 20260922-qcom_nandc-share-more-code-febbc0b5ba8e

Best regards,
--
Gabor Juhos <j4g8y7@xxxxxxxxx>