mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Prakriti Sharma <Prakriti.Sharma@synopsys.com>
To: Mark Brown <broonie@kernel.org>, linux-spi@vger.kernel.org
Cc: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	devicetree@vger.kernel.org,
	Philipp Zabel <p.zabel@pengutronix.de>,
	linux-kernel@vger.kernel.org,
	Siddhant Kumar <Siddhant.Kumar@synopsys.com>,
	Prakriti Sharma <Prakriti.Sharma@synopsys.com>
Subject: Re: [PATCH 2/6] spi: dw-g2: Add Synopsys DWC SSI v2.02a driver
Date: Mon, 30 Nov 2026 08:11:31 +0530	[thread overview]
Message-ID: <20261130024131.4228-1-prakriti@synopsys.com> (raw)
In-Reply-To: <179511909433.116416.9010484552833951379.b4-review@b4>

Hi Mark,

Thanks for the review on the base driver. v2 addresses these points;
notes inline below.

> F: drivers/spi/spi-dw-g2-*.[ch]
> There's drivers/spi/spi-dw-g2.h too.

MAINTAINERS now uses F: drivers/spi/spi-dw-g2*.

> drop debugfs / consider regmap

Dropped debugfs entirely (no register dump / regset). XIP runtime knobs
(continuous, prefetch, mode) are sysfs-only.

> dev_warn_once()

Done for speed clamping in dw_spi_g2_setup().

> timeouts should be scaled by transfer length / bus speed

FIFO loops use one deadline per transfer from dw_spi_g2_xfer_timeout_us()
(BAUDR for the active CS plus slack), not a per-byte 1s reset.

> half duplex vs transfer_one()

Regular SPI uses IRQ-driven full-duplex transfer_one() (TMOD=TR). spi-mem
paths still poll the FIFO with IMR masked so CS timing stays atomic on
exec_op().

> open coding spi_mem_exec_op()

Same constraint as spi-dw-core: native CS drops when the TX FIFO empties, so
we cannot use the generic split-transfer fallback. Each op is one FIFO
stream with SER set after prefill; the rationale is in the driver.

> drop dev_info() in init

Removed from core init and probe paths.

> transfer_one / local_irq_disable

transfer_one() and set_cs() are registered. No local_irq_disable() on the
transfer path.

> only clear interrupts you handled

The IRQ handler acknowledges only the FIFO error bits it handles via
selective ICR writes.

> mandatory IRQ / named lines

The binding requires interrupts. Probe requests rxf/txe/txaf/wsf by name
when present, else interrupt index 0. dw_spi_g2_irq() services TXEI/RXFI
for transfer_one and FIFO errors.

> validate num-cs

Validated to 1..4 when the property is present.

> devm vs remove() ordering

Probe uses devm throughout (devm_spi_alloc_host, devm reset,
devm_spi_register_controller); remove() is gone. CS for non-mem SPI goes
through set_cs() at message scope.

Thanks,
Prakriti

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

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 10:05 [PATCH 0/6] spi: dw-g2: add Synopsys DWC SSI v2.02a controller support Prakriti Sharma
2026-11-19 10:05 ` [PATCH 1/6] dt-bindings: spi: Add Synopsys DWC SSI v2.02a binding Prakriti Sharma
2026-11-19 10:05 ` [PATCH 2/6] spi: dw-g2: Add Synopsys DWC SSI v2.02a driver Prakriti Sharma
2026-11-19 20:11   ` Mark Brown
2026-11-30  2:41     ` Prakriti Sharma [this message]
2026-11-19 10:05 ` [PATCH 3/6] spi: dw-g2: Add indirect read and write Prakriti Sharma
2026-11-20  0:07   ` kernel test robot
2026-11-19 10:05 ` [PATCH 4/6] spi: dw-g2: Add SPI-NAND support Prakriti Sharma
2026-11-19 10:05 ` [PATCH 5/6] dt-bindings: spi: Document DWC SSI XIP properties Prakriti Sharma
2026-11-19 12:18   ` Krzysztof Kozlowski
2026-11-30  2:43     ` Prakriti Sharma
2026-11-19 10:05 ` [PATCH 6/6] spi: dw-g2: Add XIP support Prakriti Sharma
2026-11-19 20:11   ` Mark Brown
2026-11-30  2:43     ` Prakriti Sharma
2026-11-19 21:29   ` kernel test robot
2026-11-19 20:11 ` [PATCH 0/6] spi: dw-g2: add Synopsys DWC SSI v2.02a controller support Mark Brown

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=20261130024131.4228-1-prakriti@synopsys.com \
    --to=prakriti.sharma@synopsys.com \
    --cc=Siddhant.Kumar@synopsys.com \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    /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

all inboxes | Powered by JetHome®