[PATCH v2 2/3] mtd: rawnand: Add Cortina CS7542 controller support
Fil Dunsky
filipp.dunsky at gmail.com
Mon Nov 23 13:26:45 PST 2026
> Should cs752x_nand_pio() also set NF_ACCESS_EXTADDR() in FLASH_NF_ACCESS for
> row-addressed operations?
I checked the two paths on Almond+ with the 6.18 backport of this v2
driver, using read-only access to the existing flash.
MEMREAD in MTD_OPS_RAW mode with data and OOB uses read_page_raw() and
cs752x_setup_page_regs(), which sets the bank. OOB-only MEMREADOOB64
uses the core read_oob_std/exec_op path and cs752x_nand_pio(), with the
bank field zero. These are separate reads, not the same software cache.
At physical offsets 0x08600000, 0x10600000 and 0x18600000 (banks 1, 2 and 3),
the 64 OOB bytes matched between those two paths. In each case the OOB
was non-erased and differed from the lower-bank alias at 0x00600000.
ECC corrected/failed counts remained 0. Thus the generic OOB register
path does retain the upper row bits on this 512MiB device.
The generic path programs all address cycles in ADDRESS_1/_2. The
vendor erase path also clears EXTADDR and supplies the full row; its
register-PIO OOB loops clear EXTADDR before each word as well. This is
different from selecting the vendor's 128MiB memory/DMA aperture.
I do not think adding an aperture bank to these register transactions
is required. The read comparison above does not claim a new OOB-write
test; no flash writes were performed during this check.
Thanks,
Fil
More information about the linux-mtd
mailing list