mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/7] spi: spi-qpic-snand: use generic code from the 'qpic_common' module
@ 2026-12-02 20:40 Gabor Juhos
  2026-12-02 20:40 ` [PATCH v2 1/7] spi: spi-qpic-snand: use the common qcom_nandc_check_flash_errors() function Gabor Juhos
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Gabor Juhos @ 2026-12-02 20:40 UTC (permalink / raw)
  To: Mark Brown
  Cc: Md Sadre Alam, Sricharan Ramabadhran, Varadarajan Narayanan,
	linux-spi, linux-mtd, linux-kernel, Gabor Juhos

Since commit cfae2182fa7b ("mtd: rawnand: qcom: move common code to the
'qpic_common' module"), the 'qpic_common' module provides several generic
functions which can be utilized from the 'spi-qpic-snand' driver instead
of the locally implemented code.

This series converts the driver to use the common code to reduce code
duplication.

In order to make review easier, there are separate patches for each
functions and another one for reusing the 'qcom_nandc_read_stats'
structure.

Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
---
Changes in v2:
- rebase on tip of spi/for-7.5
- rework patch 2/7 to remove dependency of change-id:
  '20260922-qpic-snand-fix-singlecw-readloc-c4c89b4369f5:v2', so the series
  can be applied without that specific change
- Link to v1: https://lore.kernel.org/r/20261109-qpic-snand-use-common-functions-v1-0-1e8601e2db84@gmail.com

---
Gabor Juhos (7):
      spi: spi-qpic-snand: use the common qcom_nandc_check_flash_errors() function
      spi: spi-qpic-snand: use the common qcom_nandc_config_page_read() function
      spi: spi-qpic-snand: use the common qcom_nandc_config_page_write() function
      spi: spi-qpic-snand: use the common qcom_nandc_config_cw_write() function
      spi: spi-qpic-snand: use the common qcom_nandc_set_read_loc_first() function
      spi: spi-qpic-snand: use the common qcom_nandc_set_read_loc_last() function
      spi: spi-qpic-snand: use the common 'qcom_nandc_read_stats' structure

 drivers/spi/spi-qpic-snand.c | 137 ++++++++-----------------------------------
 1 file changed, 24 insertions(+), 113 deletions(-)
---
base-commit: 1ce9be23c0e4ab6dc0df8aca2a526b9aed435032
change-id: 20261028-qpic-snand-use-common-functions-12b18fc7a1e5

Best regards,
-- 
Gabor Juhos <j4g8y7@gmail.com>


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-12-02 20:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-02 20:40 [PATCH v2 0/7] spi: spi-qpic-snand: use generic code from the 'qpic_common' module Gabor Juhos
2026-12-02 20:40 ` [PATCH v2 1/7] spi: spi-qpic-snand: use the common qcom_nandc_check_flash_errors() function Gabor Juhos
2026-12-02 20:40 ` [PATCH v2 2/7] spi: spi-qpic-snand: use the common qcom_nandc_config_page_read() function Gabor Juhos
2026-12-02 20:40 ` [PATCH v2 3/7] spi: spi-qpic-snand: use the common qcom_nandc_config_page_write() function Gabor Juhos
2026-12-02 20:40 ` [PATCH v2 4/7] spi: spi-qpic-snand: use the common qcom_nandc_config_cw_write() function Gabor Juhos
2026-12-02 20:40 ` [PATCH v2 5/7] spi: spi-qpic-snand: use the common qcom_nandc_set_read_loc_first() function Gabor Juhos
2026-12-02 20:40 ` [PATCH v2 6/7] spi: spi-qpic-snand: use the common qcom_nandc_set_read_loc_last() function Gabor Juhos
2026-12-02 20:40 ` [PATCH v2 7/7] spi: spi-qpic-snand: use the common 'qcom_nandc_read_stats' structure Gabor Juhos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®