summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGabor Juhos <j4g8y7@gmail.com>2026-10-05 19:18:50 +0200
committerMark Brown <broonie@kernel.org>2026-10-13 18:17:43 +0100
commit2da46f1e9b980a38bc6afd417322ca4963725e16 (patch)
treef4cbbb924c956cec54dd19db18677430881d49cb /tools/perf/scripts/python
parent90001ddc6cbe4d3fbc69f72ca4bad54e70a4c064 (diff)
spi: spi-qpic-snand: skip BBM copy on regular raw reads
Trying to read the raw flash contents with nanddump, the second byte of the OOB area contains 0xff instead of the real data in the flash. This happens because the qcom_spi_read_last_cw() function unconditionally copies the bad block marker into the second byte of the output buffer. Add a new flag to the controller's private data structure, and set it when only the first two bytes of the OOB area being read in raw mode. Also change the bad block copying code to run only when the flag is set. This ensures that the SPI NAND framework still can read the BBM bytes, but on regular raw read, the output does not contain the duplicated marker byte. Fixes: 7304d1909080 ("spi: spi-qpic: add driver for QCOM SPI NAND flash Interface") Signed-off-by: Gabor Juhos <j4g8y7@gmail.com> Link: https://patch.msgid.link/20261005-qpic-snand-skip-bbm-copy-v1-1-04f6aeda4044@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions