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] The patch gives the simulator layout configured priorities, but no test in the series checks that those priorities come back over… -- selftests: dpll: add pin priority test This commit adds test_pin_priority_get_set() to dpll_features.sh. The test sets a new priority on a spare input pin, reads it back and then restores the original value. It also adds an optional priority argument to dpllsim_add_pin() and gives configured priorities to the standard and stress simulator layouts.
> diff --git a/tools/testing/selftests/drivers/dpll/dpll_features.sh b/tools/testing/selftests/drivers/dpll/dpll_features.sh > index 9dcf53d019987..e50b60608f1e9 100755 > --- a/tools/testing/selftests/drivers/dpll/dpll_features.sh > +++ b/tools/testing/selftests/drivers/dpll/dpll_features.sh
[ ... ]
> + # A query that failed is not a pin without a priority. > + if ! before=$(dpll_pin_get_prio "$DPLL_DEV_ID" "$PIN_TUNE_ID"); then > + check_err 1 "pin $PIN_TUNE_ID query failed" > + log_test "DPLL pin priority set/get" > + return > + fi > + if [ -z "$before" ]; then > + dpll_log_test_skip_or_fail "DPLL pin priority set/get" \ > + "prio not reported" > + return > + fi > + if ! [[ "$before" =~ ^[0-9]+$ ]]; then > + check_err 1 "prio '$before' is not a number" > + log_test "DPLL pin priority set/get" > + return > + fi
[Severity: Low] This isn't a bug, but should the created device also check before against the configured layout here? dpllsim_add_standard_pins() now writes prio 0 for gnss0 and prio 1 for ext0 through configfs. The comment above dpllsim_setup_standard_device() documents those values. test_pin_priority_get_set() only checks that before is a number, even when DPLL_CREATED_DEVICE is set and the layout is known. dpll_basic.sh has no prio checks. pin_ranks_below_refs() only reads .prio on devices the user provided. dpll_stress.sh never reads back the priorities it assigns randomly. That leaves the configfs to netlink path untested: dpllsim_pin_prio_store() sets cfg_prio -> dpllsim_pin_reset() pin->prio = pin->cfg_prio; -> dpllsim_pin_prio_get() Suppose the store silently dropped the value, or the copy in dpllsim_pin_reset() were lost when the device goes live. ext0 would then report the simulator default of 128 instead of 1. The test would still pass, because it would set 129, read 129 back and restore 128. ext0 is the pin pick_tune_pin() picks on the created device. Would a check such as this one close the gap? [ -z "$DPLL_CREATED_DEVICE" ] || [ "$before" = 1 ] [ ... ]
-- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/2026…%40redhat.com