From: "Benoît Monin" <benoit.monin@bootlin.com>
To: sashiko-reviews@lists.linux.dev
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v8 6/9] clk: eyeq: Introduce a generic clock type
Date: Fri, 12 Jun 2026 11:12:30 +0200 [thread overview]
Message-ID: <ySSlygKLR5G6SmDpPN91fw@bootlin.com> (raw)
In-Reply-To: <20260604135106.867711F00893@smtp.kernel.org>
On Thursday, 4 June 2026 at 15:51:06 CEST, sashiko-bot@kernel.org wrote:
...
> [Severity: High]
> This isn't a bug introduced by this patch, but since multiple writable
> clock dividers share the same physical register (for example, div-ospi-ref
> and div-ospi-sys share the register at 0x090), can concurrent clk_set_rate()
> calls cause read-modify-write races here?
>
> Because NULL is passed as the lock parameter, the clock divider core will
> perform a lockless read-modify-write sequence. Would it be safer to provide
> a shared spinlock to protect the register state?
>
This is a fairly theoretical point. For now, the clocks are unused and not
tied to any device in the device tree on the EyeQ6H SoC. Even so, both
clocks are related to the octo-spi controller which uses the
spi-cadence-quadspi driver. In this driver, the clocks are handled by the
clk-bulk API which serialize clock accesses in lk_bulk_prepare_enable() and
clk_bulk_disable_unprepare(). And there are no calls to clk_set_rate() in
this driver.
Best regards,
--
Benoît Monin, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2026-06-12 9:12 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-04 13:26 [PATCH v8 0/9] Add clock and reset support for Mobileye EyeQ7H Benoît Monin
2026-06-04 13:26 ` [PATCH v8 1/9] dt-bindings: soc: mobileye: Add EyeQ7H OLB Benoît Monin
2026-06-04 13:26 ` [PATCH v8 2/9] reset: eyeq: Add EyeQ7H compatibles Benoît Monin
2026-06-04 13:26 ` [PATCH v8 3/9] clk: fixed-factor: Rework initialization with parent clocks Benoît Monin
2026-06-04 13:26 ` [PATCH v8 4/9] clk: fixed-factor: Export __clk_hw_register_fixed_factor() Benoît Monin
2026-06-04 13:26 ` [PATCH v8 5/9] clk: eyeq: Prefix the PLL registers with the PLL type Benoît Monin
2026-06-04 13:36 ` sashiko-bot
2026-06-09 9:12 ` Benoît Monin
2026-06-04 13:26 ` [PATCH v8 6/9] clk: eyeq: Introduce a generic clock type Benoît Monin
2026-06-04 13:51 ` sashiko-bot
2026-06-12 9:12 ` Benoît Monin [this message]
2026-06-04 13:26 ` [PATCH v8 7/9] clk: eyeq: Convert clocks declaration to eqc_clock Benoît Monin
2026-06-04 13:44 ` sashiko-bot
2026-06-12 9:12 ` Benoît Monin
2026-06-04 13:26 ` [PATCH v8 8/9] clk: eyeq: Drop PLL, dividers, and fixed factors structs Benoît Monin
2026-06-04 13:26 ` [PATCH v8 9/9] clk: eyeq: Add EyeQ7H compatibles Benoît Monin
2026-06-04 13:43 ` sashiko-bot
2026-06-12 9:12 ` Benoît Monin
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=ySSlygKLR5G6SmDpPN91fw@bootlin.com \
--to=benoit.monin@bootlin.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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