Linux clock framework development
 help / color / mirror / Atom feed
From: Fil Dunsky <filipp.dunsky@gmail.com>
To: sashiko-bot@kernel.org
Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org,
	linux-gpio@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v4 3/6] clk: Add Cortina Systems CS7542 clocks
Date: Wed, 25 Nov 2026 14:17:21 +0300	[thread overview]
Message-ID: <179560544103.3.15793449705570350216@gmail.com> (raw)
In-Reply-To: <sashiko-outbox-233158@kernel.org>

Thanks, confirmed. clk_core_is_prepared() stores this callback's result
in a bool, so a negative regmap error is treated as prepared.

I have changed cs7542_gate_is_prepared() to return
regmap_test_bits(...) > 0. The actual callback failed with the posted
code and passed with the fix for all negative Linux errnos, zero and
one under GCC and Clang. Both ARM compiler builds passed as well.

The fix is queued for v5 while the combined v4 review continues.

Thanks,
Fil

  reply	other threads:[~2026-11-25 11:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 10:34 [PATCH v4 0/6] soc: cortina: Add CS7542 global clocks, reset controller and pinctrl Fil Dunsky via B4 Relay
2026-11-25 10:34 ` [PATCH v4 1/6] dt-bindings: soc: Add Cortina Systems CS7542 global controls Fil Dunsky via B4 Relay
2026-11-25 10:34 ` [PATCH v4 2/6] dt-bindings: pinctrl: Add Cortina Systems CS7542 pin mux Fil Dunsky via B4 Relay
2026-11-25 10:34 ` [PATCH v4 3/6] clk: Add Cortina Systems CS7542 clocks Fil Dunsky via B4 Relay
2026-11-25 10:46   ` sashiko-bot
2026-11-25 11:17     ` Fil Dunsky [this message]
2026-11-25 10:34 ` [PATCH v4 4/6] reset: Add Cortina Systems CS7542 global reset controller Fil Dunsky via B4 Relay
2026-11-25 11:19   ` Philipp Zabel
2026-11-25 11:26     ` Fil Dunsky
2026-11-25 10:34 ` [PATCH v4 5/6] pinctrl: Add Cortina Systems CS7542 pin multiplexer Fil Dunsky via B4 Relay
2026-11-25 10:34 ` [PATCH v4 6/6] MAINTAINERS: Add CS7542 global control support 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=179560544103.3.15793449705570350216@gmail.com \
    --to=filipp.dunsky@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-bot@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