mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Fil Dunsky <filipp.dunsky@gmail.com>
To: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Stephen Boyd <sboyd@kernel.org>,
	Brian Masney <bmasney+clk@redhat.com>,
	Jerome Brunet <jbrunet+clk@baylibre.com>,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org
Subject: Re: [PATCH 2/3] clk: cs7542: Add global PCIe controls and network engine reset
Date: Tue, 24 Nov 2026 13:05:40 +0300	[thread overview]
Message-ID: <179551474060.2.10541952676329766668@gmail.com> (raw)
In-Reply-To: <9facd8eabb9d0c2bbe816117481dd624aa8c1f04.camel@pengutronix.de>

Hi Philipp,

Yes, those are seven separately named bits in GLOBAL_BLOCK_RESET. I
haven't found a hardware requirement to change them in one write. The
vendor cs_ni_reset() toggles bits in a different register,
NI_TOP_NI_INTF_RST_CONFIG.

I grouped the lines for Ethernet teardown. QM can still own RX buffers
and DMA-LSO can still own TX descriptors. The driver checks that all
the blocks it owns are held in reset before freeing those buffers.
The -EIO for a mixed readback is how the current driver detects an
incomplete stop. The Almond+ tests exercised the grouped sequence.

I'll try exposing individual reset lines and checking each in the
Ethernet driver. If any assert or readback fails, it needs to keep the
DMA buffers. reset_control_bulk_assert() would deassert earlier lines
on error, so that helper is unsuitable for this teardown.

I'll also use regmap_test_bits() for the gate, drop the redundant ID
checks, and move the PCIe assert, deassert and delays into the host
driver. These reset bits stay asserted until software clears them.

Thanks,
Fil


  reply	other threads:[~2026-11-24 10:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 21:50 [PATCH 0/3] soc: cortina: Add CS7542 shared gates and reset domains Fil Dunsky via B4 Relay
2026-11-23 21:50 ` [PATCH 1/3] dt-bindings: soc: Describe CS7542 global " Fil Dunsky via B4 Relay
2026-11-23 21:50 ` [PATCH 2/3] clk: cs7542: Add global PCIe controls and network engine reset Fil Dunsky via B4 Relay
2026-11-24  9:48   ` Philipp Zabel
2026-11-24 10:05     ` Fil Dunsky [this message]
2026-11-23 21:51 ` [PATCH 3/3] MAINTAINERS: Track CS7542 global reset specifiers 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=179551474060.2.10541952676329766668@gmail.com \
    --to=filipp.dunsky@gmail.com \
    --cc=bmasney+clk@redhat.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jbrunet+clk@baylibre.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    --cc=sboyd@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®