From: Ali Rouhi <arouhi@sitime.com>
To: "netdev-bot+sashiko@kernel.org" <netdev-bot+sashiko@kernel.org>
Cc: Jiri Pirko <jiri@resnulli.us>,
Vadim Fedorenko <vadim.fedorenko@linux.dev>,
Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>,
Ivan Vecera <ivecera@redhat.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Carolina Jubran <cjubran@nvidia.com>,
Oleg Zadorozhnyi <Oleg.Zadorozhnyi@devoxsoftware.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net-next v11 06/13] dpll: sit9531x: register DPLL devices and pins
Date: Fri, 9 Oct 2026 18:23:26 +0000 [thread overview]
Message-ID: <20261009182323.76166-4-arouhi@sitime.com> (raw)
In-Reply-To: <179116259911.434549.6587142199088743518@kernel.org>
On Mon, 5 Oct 2026, netdev-bot+sashiko@kernel.org wrote:
Replies inline, in the order of the summary list.
> [Severity: Medium]
> Is DPLL_MODE_AUTOMATIC the right value for a PLL whose profile sets
> manual active select? sit9531x_manual_sel_report() detects PLL_CONFIG1F
> bit 6 at probe, but only warns:
>
> [...]
>
> With no .mode_set, the core already refuses mode changes. For a PLL where
> sit9531x_manual_sel_report() found bit 6 set, could mode_get report
> DPLL_MODE_MANUAL and supported_modes_get list only MANUAL?
A profile can set the manual active-select bit, and the driver reports
it: sit9531x_manual_sel_report() reads CONFIG1F bit 6, MISCINNER bit 5
and the MAN_IN_SEL bit at probe and says so once.
With the inner manual bit clear the PLL follows CLK_ACTIVESEL, which
this driver rewrites on every table commit, so the selection is the
driver's and AUTOMATIC is the right report. A read-only MANUAL would
describe only the case where the inner manual bit is set, which the
loaded configurations do not do. If one does, the message at probe says
which bit, and the mode can be made to follow it then.
> [Severity: Medium]
> Can a PLL that is frozen in holdover be reported as LOCKED here?
>
> [...]
>
> Should the ho_freeze test come before the locked test?
Fixed: holdover freeze is tested before the lock bit, which is also the
order the pin-state contract uses (a pin is active while the PLL is
locked and not frozen). A frozen PLL whose outer loss-of-lock bit is
clear reports holdover, not locked.
> [Severity: Low]
> The pin loop below takes a first-poll baseline through pin->seen, but
> this device-level comparison has no baseline.
>
> [...]
>
> Won't the first tick send a dpll_device_change_ntf() for every PLL that
> is locked or in holdover, even though nothing changed?
Fixed: the device's lock status is seeded at registration, through the
same getter the poll uses, so the first tick announces only what moved
since. The pins' baseline moved the same way, see the reply on 08/13.
> [Severity: Low]
> Slots 2n and 2n+1 share one register, so sit9531x_prio_reg() returns the
> same address on two consecutive iterations. Is it intended that 5 of the
> 6 priority registers are read twice, for every PLL, on every poll?
>
> [...]
>
> Could each priority register be read once, and the global status bytes
> once per tick? That would remove about 30 transfers per tick.
The count is right: the table is read a byte per slot although two slots
share a register, and the three page-0 status bytes are read once per
PLL rather than once per tick.
None of it is a correctness problem. The poll runs at 500 ms and the bus
is 100 kHz, which leaves it idle for most of the period. Reading the six
table registers once and hoisting the three global reads is a mechanical
change; it is planned for a later revision so this one stays about
behavior.
next prev parent reply other threads:[~2026-10-09 18:23 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-30 23:37 [PATCH net-next v11 00/13] dpll: add SiTime SiT9531x DPLL clock driver Ali Rouhi
2026-09-30 23:37 ` [PATCH net-next v11 01/13] dt-bindings: dpll: allow hex unit addresses on output pins Ali Rouhi
2026-10-02 8:32 ` Krzysztof Kozlowski
2026-09-30 23:37 ` [PATCH net-next v11 03/13] dt-bindings: dpll: add SiTime SiT95316 clock generator Ali Rouhi
2026-10-05 1:09 ` netdev-bot+sashiko
2026-10-09 18:23 ` Ali Rouhi
2026-10-06 3:22 ` Rob Herring (Arm)
2026-10-09 18:23 ` Ali Rouhi
2026-09-30 23:37 ` [PATCH net-next v11 02/13] dt-bindings: vendor-prefixes: add SiTime Corporation Ali Rouhi
2026-09-30 23:37 ` [PATCH net-next v11 04/13] dpll: add basic SiTime SiT9531x support Ali Rouhi
2026-10-05 1:09 ` netdev-bot+sashiko
2026-10-09 18:23 ` Ali Rouhi
2026-09-30 23:37 ` [PATCH net-next v11 05/13] dpll: sit9531x: read DPLL types and pin properties from system firmware Ali Rouhi
2026-10-05 1:09 ` netdev-bot+sashiko
2026-10-09 18:23 ` Ali Rouhi
2026-09-30 23:37 ` [PATCH net-next v11 06/13] dpll: sit9531x: register DPLL devices and pins Ali Rouhi
2026-10-05 1:09 ` netdev-bot+sashiko
2026-10-09 18:23 ` Ali Rouhi [this message]
2026-09-30 23:37 ` [PATCH net-next v11 07/13] dpll: sit9531x: implement input pin state on a DPLL Ali Rouhi
2026-10-05 1:10 ` netdev-bot+sashiko
2026-10-09 18:23 ` Ali Rouhi
2026-09-30 23:37 ` [PATCH net-next v11 08/13] dpll: sit9531x: add support to get and set priority on input pins Ali Rouhi
2026-10-05 1:10 ` netdev-bot+sashiko
2026-10-09 18:23 ` Ali Rouhi
2026-09-30 23:37 ` [PATCH net-next v11 09/13] dpll: sit9531x: add support to get and set frequency on pins Ali Rouhi
2026-10-05 1:10 ` netdev-bot+sashiko
2026-10-09 18:23 ` Ali Rouhi
2026-09-30 23:37 ` [PATCH net-next v11 10/13] dpll: sit9531x: implement output pin state on a DPLL Ali Rouhi
2026-10-05 1:10 ` netdev-bot+sashiko
2026-10-09 18:23 ` Ali Rouhi
2026-09-30 23:37 ` [PATCH net-next v11 12/13] dpll: sit9531x: add support to get phase offset on the connected input pin Ali Rouhi
2026-10-05 1:10 ` netdev-bot+sashiko
2026-10-09 18:23 ` Ali Rouhi
2026-09-30 23:37 ` [PATCH net-next v11 11/13] dpll: sit9531x: add support to adjust output phase Ali Rouhi
2026-10-05 1:10 ` netdev-bot+sashiko
2026-10-09 18:23 ` Ali Rouhi
2026-09-30 23:37 ` [PATCH net-next v11 13/13] dpll: sit9531x: model the inter-PLL sync net as a pair of pins Ali Rouhi
2026-10-05 1:10 ` netdev-bot+sashiko
2026-10-09 18:23 ` Ali Rouhi
2026-10-07 2:10 ` [PATCH net-next v11 00/13] dpll: add SiTime SiT9531x DPLL clock driver patchwork-bot+netdevbpf
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=20261009182323.76166-4-arouhi@sitime.com \
--to=arouhi@sitime.com \
--cc=Oleg.Zadorozhnyi@devoxsoftware.com \
--cc=arkadiusz.kubalewski@intel.com \
--cc=cjubran@nvidia.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=ivecera@redhat.com \
--cc=jiri@resnulli.us \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=robh@kernel.org \
--cc=vadim.fedorenko@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
all inboxes | Powered by JetHome®