Article View: linux.kernel.netdev
Article #26056Re: [PATCH net-next v17 05/13] dpll: sit9531x: read DPLL types and pin properties from system firmware
From: netdev-bot+sashiko
Date: Thu, 03 Dec 2026 00:39
Date: Thu, 03 Dec 2026 00:39
68 lines
10602 bytes
10602 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] Concern: sit9531x_input_pin_label() picks the 'IN<k>' or
'IN<k>P/N' label from sitdev->ref[id].sig_mode, which nothing at thisβ¦
--
dpll: sit9531x: read DPLL types and pin properties from system firmware
This commit adds prop.c. It reads the DPLL type from the firmware node
and, for each pin, its label, connection type and supported frequencies,
with defaults for pins whose node gives none of them. Input pins are
labeled from the signal mode of their pair, and outputs get OUTn labels
plus the datasheet output rates when no rates are listed.
> diff --git a/drivers/dpll/sit9531x/prop.c b/drivers/dpll/sit9531x/prop.c
> new file mode 100644
> index 0000000000000..495bed45c2384
> --- /dev/null
> +++ b/drivers/dpll/sit9531x/prop.c
> @@ -0,0 +1,350 @@
[ ... ]
> +static void sit9531x_input_pin_label(struct sit9531x_dev *sitdev,
> + struct sit9531x_pin_props *props, u8 id)
> +{
> + u8 pair = sit9531x_input_pair(id);
> +
> + if (sitdev->ref[id].sig_mode == SIT9531X_MODE_DE)
> + snprintf(props->package_label,
> + sizeof(props->package_label), "IN%u", pair);
> + else
> + snprintf(props->package_label,
> + sizeof(props->package_label), "IN%u%c", pair,
> + sit9531x_input_is_n(id) ? 'N' : 'P');
> +}
[Severity: Low]
At this commit, does anything write sitdev->ref[].sig_mode?
The field is added to struct sit9531x_ref in core.h, and
sit9531x_input_pin_label() is its only reader. Nothing in this patch
sets it, so every pair would read as SIT9531X_MODE_SE (0). Each pin
would then get the IN<n>P/IN<n>N label, even for a differential pair.
This doesn't look observable in practice. No caller of
sit9531x_pin_props_get() exists yet. The later patch "dpll: sit9531x:
register DPLL devices and pins" adds the first caller. It also adds
sit9531x_input_mode_fetch(), which sets both lanes of each pair:
sitdev->ref[pair * 2].sig_mode = sig_mode;
sitdev->ref[pair * 2 + 1].sig_mode = sig_mode;
That patch also skips the N lane of a differential pair in
sit9531x_input_pin_is_registrable().
Would it be clearer to add sig_mode in the same patch as the code that
fills it in? Or could the kernel-doc here say where the value comes from
(CLKINx_INPUT_MODE), as it does at the end of the series?
--
Sashiko AI review Β· https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261201235202.97645-1-arouhi%40sitime.com
Technical Details
Message-ID:
<179625834542.3146.8144227807378729978@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376159-linux-kernel-netdev=dewy.ruReferences:
<20261201235202.97645-6-arouhi@sitime.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376159-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v17 05/13] dpll: sit9531x: read DPLL types and pin properties from system firmware Date: Thu, 03 Dec 2026 00:39:05 +0000 Organization: Usenet Network Message-ID: <179625834542.3146.8144227807378729978@kernel.org> References: <20261201235202.97645-6-arouhi@sitime.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2097270"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:3YvBg6LJdZ4PEl2IGN5o2ZE4ZME= sha256:iltrSa3hTyf/sC6+wOG/hksjVzx8tXQ3WN8mUSpw69A= sha1:QDu6/N9IJ5cbherFqvB3L4dvdCQ= sha256:61SPwGy0kXQ+fwwmf7Buj+tO5wxuZoBpODoiucTUOTU= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 859311177BC; Thu, 3 Dec 2026 03:39:24 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.501 X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3kZ_851m-ZVM; Thu, 3 Dec 2026 03:39:21 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-376159-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id D25D61177B5; Thu, 3 Dec 2026 03:39:12 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 11394284F8; Thu, 3 Dec 2026 00:39:09 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796258347; b=dJJmGSzHmXjbESNSVe+Ez15sfzvXhto6J/d/Xzr3AZyWaNcCNtMzPVaghlCqnS6kqhQz 9YSnTsx+TpDbZ9YewxEznv99nS6+VVyWFGMEAnulboShxFTNtkzJQAjyaO0nz0l07OtEb a6KCraDzlJZi/Fvbir9BMs8A5uun9DXmveHSGyyD88GNeExDx55Exv/u8YUaQaFfv6BB7 5CS0XD16k33P43NcVh0fIdUxzM36rhA8Tj08+8czs+dlnIstvJHDXna8F1NN9T6BErryT WV68wMJDeb/Cq48qlSOVzBF8Il0/FC/U2zpodLMH1MdVOyIEToajTFhcB3hwye42Qrw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796258347; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=9uguSCimCNU3J1FfODVEy99vN6MmsmX8Ncy5xTE0QU8=; b=HKdnVfPemQvHnz6qnilRmD5VcC5YaKBvU1M7kvbYmOgBrKJV2NnTMO4Fcs//OnjXBW4T s2npHK/sZ73y45jomJixR2Lw7vJBAegvI7lE4mjRHVETYbQ0sAqZJdWzWlWzH5C7Vsx+2 qoW5YtYQ6OSHXjb2RaeDJQ66WgDaFB/SHw7JG747XmYrjxGWc7L0ZvQ4OQ2qUVZ/ylrgY +Rejea6DRlnef9Zlhb0OaSwWmbm4Zsa7NCQDuBoBIjxWG7dXwgudU6oRKiU6u8+K7FJWq 3nN2kJS+G8Qw5Se4qehA1DwqYtusMo3VWfZH5971Z5lZnkFCUQ188p7+/5aPy3edzsw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DA7S05Q7; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9C490606A687; Thu, 3 Dec 2026 00:39:07 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DA7S05Q7 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796258346; b=4/nWMkBtA7y4XyPGseBTQG0LWwr1NncZPn6A7skv2JwzNouQKqvaRxsuxYPK621zB6z6 RzW6Oi0yC9GGdQUXy0KaYWt+Ah/PL8grgSBwLbL7vYw+qkZao9+5rxp4AL8wZw/RtIDjg p729LQfYLRbtr/wrXse3VsTCOC1rCMWNExIj9/jtiSor+6AQWXnaEpBLhq3tsS9SkNLSF 5NMZ+jNFS6hWAt8yVPukNQSgFVR2Jj56H/5ERv/bmgjs4xIm8/Rha0+O6JMeF9WryrVw8 OJfv6YMZWgJAEiFirvp4cUA85oJTK4OKQmfrZFa6dRmgg662RmdSz+vFk7TXuWTJWhA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796258346; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=9uguSCimCNU3J1FfODVEy99vN6MmsmX8Ncy5xTE0QU8=; b=KlpHJhmIk4u8ND8G95hTEOX6yK4/o8dGu9SX6iqCCD0hUDDMVX8vu18hsF8NW98giLK/ KVCeceZ6ztUBBCDS8gyZWW9rdoiQlfKBKNXGGupWFQhLnOzOSnGjUEpHyELseux/QARyJ LM6FSdVaXVKP4NsckgfxOg+kCyKv9cOCsFT+hwCGSThZSBcxkGT+/ttKF0wsD4iIheimV L5Zx0OeL0DDZvxt+mRYIF/lZlQgP+nu9Zvxs2aYWVfY6iuvqtYXF9Q8lSpd3U/JLUeQo4 xxEA3vF4R36GRpRs+KXyjughunKzl/gRLnhmaj3KnfigGDSXY/QOwcbqgQURbM4cr/Q== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DA7S05Q7; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD9BC606A339; Thu, 3 Dec 2026 00:39:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD39D1F00898; Thu, 3 Dec 2026 00:39:05 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796258346; bh=9uguSCimCNU3J1FfODVEy99vN6MmsmX8Ncy5xTE0QU8=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=DA7S05Q7VOfwLuYpNYD5NO3V7vk36dvJyPJZRpu/0nXoOy+tbuxGMcgaFQMsI7FCs Z0PPjKoYLvjYCYPwOgq1PceWQ0m6ft494Y08o2LVj+jtb3Cwg+ujf5A5EwUT13cdHr 4YEGP4/D4WNCDaySREZY/FUj3FlD6kVv2zEQAr3cHoGsrJ5ZcF2gybqh0R5sq5IaKb 88pCvnBApH/Gf11tLgEL6phOx4aXlrFQGq8gW+wwR8LcebdYweCaFa4qHvVMt8QKu0 wIj/wepoYe8wfBShWm803orZR8UHgzW515xPpvT0eR/m+QDV0azo/SNMCeyANjlMTw ANz4tWz4YkmMQ== X-Cc: jiri@resnulli.us, ivecera@redhat.com, vadim.fedorenko@linux.dev, arkadiusz.kubalewski@intel.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, prabhakar.mahadev-lad.rj@bp.renesas.com, cjubran@nvidia.com, Oleg.Zadorozhnyi@devoxsoftware.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-In-Reply-To: <20261201235202.97645-6-arouhi@sitime.com> X-sashiko-severity: Low X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list