Devicetree
 help / color / mirror / Atom feed
From: Fil Dunsky <filipp.dunsky@gmail.com>
To: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Richard Weinberger <richard@nod.at>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	linux-mtd@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/3] mtd: rawnand: Add Cortina CS7542 controller support
Date: Thu, 26 Nov 2026 14:37:51 +0300	[thread overview]
Message-ID: <179569307151.4.4443063730583761343@gmail.com> (raw)
In-Reply-To: <87jylzyi5g.fsf@bootlin.com>

Hi Miquel,

Thanks for reviewing both patches. You are right: I put restrictions of
the initial driver into the hardware binding. The SDK definitions have
two chip selects, 8/16-bit bus support, Hamming with 256/512-byte steps,
and BCH. I have removed the ECC restrictions and described both chip
selects in the local v4 candidate.

The 256-byte Hamming step is intentional for Almond+: it uses three ECC
bytes per step, or 24 bytes for a 2048-byte page, matching the stock
layout. The v3 hardware test read the existing flash and wrote/erased a
temporary UBI volume with that layout. This does not imply that the
controller is limited to that ECC configuration.

I also found the AXI bus attachment, flash IRQ at GIC SPI 18, and flash
reset at global reset bit 14 in the vendor sources. The updated binding
describes these and the banked data aperture. PIO does not claim the SSP
DMA engine shared with the network engine. The driver retains the
firmware bus timing and does not pulse the flash reset at probe.

For the driver, the local candidate now separates supports_op() from
execution and checks the sequencer format/capacity rather than an opcode
whitelist. The Hamming callbacks use nand_read_page_op() and
nand_prog_page_op(), with their commands and addresses passed through
exec_op(). Software ECC uses the core monolithic raw-page helpers.
I have also corrected the parameter alignment and run checkpatch.

v3 had already been posted before these replies arrived. I am collecting
both reviews into v4 rather than sending another partial revision. The
ARM build and tests against the real core operation builders pass; the
new Hamming register/data sequence also agrees with v3 in the host
model. I will check the changed path on Almond+ before posting v4.

Thanks,
Fil


  reply	other threads:[~2026-11-26 11:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 20:27 [PATCH v2 0/3] Add Cortina Systems CS7542 NAND controller support Fil Dunsky via B4 Relay
2026-11-23 20:27 ` [PATCH v2 1/3] dt-bindings: mtd: Add Cortina CS7542 NAND controller Fil Dunsky via B4 Relay
2026-11-26 10:49   ` Miquel Raynal
2026-11-23 20:27 ` [PATCH v2 2/3] mtd: rawnand: Add Cortina CS7542 controller support Fil Dunsky via B4 Relay
2026-11-23 20:39   ` sashiko-bot
2026-11-23 21:26     ` Fil Dunsky
2026-11-26 10:57   ` Miquel Raynal
2026-11-26 11:37     ` Fil Dunsky [this message]
2026-11-23 20:27 ` [PATCH v2 3/3] MAINTAINERS: Add Cortina CS7542 NAND controller entry Fil Dunsky via B4 Relay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179569307151.4.4443063730583761343@gmail.com \
    --to=filipp.dunsky@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=richard@nod.at \
    --cc=robh@kernel.org \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox