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/2026…%40sitime.com