From: Petr Oros <poros@redhat.com>
To: netdev@vger.kernel.org
Cc: Petr Oros <poros@redhat.com>, David Ahern <dsahern@kernel.org>,
Stephen Hemminger <stephen@networkplumber.org>,
Ivan Vecera <ivecera@redhat.com>, Jiri Pirko <jiri@resnulli.us>
Subject: [PATCH iproute2-next 3/3] dpll: add the state-connected-override pin capability
Date: Thu, 26 Nov 2026 10:05:12 +0100 [thread overview]
Message-ID: <20261126090516.4278-4-poros@redhat.com> (raw)
In-Reply-To: <20261126090516.4278-1-poros@redhat.com>
DPLL_PIN_CAPABILITIES_STATE_CONNECTED_OVERRIDE is the kernel capability
of pins that can be set to the connected state while their parent
device is in automatic mode. The uapi header in iproute2 already has
the flag, but the tool does not know it. A pin with the flag is shown
as "capabilities: 0xc state-can-change" with no name for the new bit,
and the JSON capabilities array leaves it out.
Add the name to the text and JSON output and describe the capability
in the man page.
Signed-off-by: Petr Oros <poros@redhat.com>
---
dpll/dpll.c | 4 ++++
man/man8/dpll.8 | 10 +++++++++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/dpll/dpll.c b/dpll/dpll.c
index 8dc1b8f5033fea..cc7da615f6beca 100644
--- a/dpll/dpll.c
+++ b/dpll/dpll.c
@@ -1534,6 +1534,8 @@ static void dpll_pin_capabilities_name(__u32 capabilities)
print_string(PRINT_FP, NULL, " priority-can-change", NULL);
if (capabilities & DPLL_PIN_CAPABILITIES_DIRECTION_CAN_CHANGE)
print_string(PRINT_FP, NULL, " direction-can-change", NULL);
+ if (capabilities & DPLL_PIN_CAPABILITIES_STATE_CONNECTED_OVERRIDE)
+ print_string(PRINT_FP, NULL, " state-connected-override", NULL);
}
/* Multi-attribute collection context */
@@ -1587,6 +1589,8 @@ static void dpll_pin_print_capabilities(struct nlattr *attr)
print_string(PRINT_JSON, NULL, NULL, "priority-can-change");
if (caps & DPLL_PIN_CAPABILITIES_DIRECTION_CAN_CHANGE)
print_string(PRINT_JSON, NULL, NULL, "direction-can-change");
+ if (caps & DPLL_PIN_CAPABILITIES_STATE_CONNECTED_OVERRIDE)
+ print_string(PRINT_JSON, NULL, NULL, "state-connected-override");
close_json_array(PRINT_JSON, NULL);
print_hex(PRINT_FP, NULL, " capabilities: 0x%x", caps);
diff --git a/man/man8/dpll.8 b/man/man8/dpll.8
index c1d4a75e072dc8..fb8276fcdc5688 100644
--- a/man/man8/dpll.8
+++ b/man/man8/dpll.8
@@ -294,7 +294,8 @@ Configured frequency and supported frequency ranges
.IP \[bu]
Measured frequency in Hz (when frequency monitoring is enabled)
.IP \[bu]
-Capabilities (state-can-change, priority-can-change, direction-can-change)
+Capabilities (state-can-change, priority-can-change, direction-can-change,
+state-connected-override)
.IP \[bu]
Phase adjustment range, granularity, and current value
.IP \[bu]
@@ -549,6 +550,13 @@ or priority within parent-device relationships.
.B direction-can-change
The pin's direction (input/output) can be modified.
+.TP
+.B state-connected-override
+The pin can be set to the connected state also when its parent device is
+in automatic mode, which overrides the automatic input selection. When the
+pin is disconnected again, the device returns to automatic selection. A pin
+with this capability also has state-can-change.
+
.PP
Use
.B dpll pin show
--
2.56.1
next prev parent reply other threads:[~2026-11-26 9:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 9:05 [PATCH iproute2-next 0/3] dpll: add missing type and capability names Petr Oros
2026-11-26 9:05 ` [PATCH iproute2-next 1/3] dpll: add the int-nco pin type Petr Oros
2026-11-26 10:24 ` Ivan Vecera
2026-11-26 9:05 ` [PATCH iproute2-next 2/3] dpll: add the generic device type Petr Oros
2026-11-26 10:24 ` Ivan Vecera
2026-11-26 9:05 ` Petr Oros [this message]
2026-11-26 10:25 ` [PATCH iproute2-next 3/3] dpll: add the state-connected-override pin capability Ivan Vecera
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=20261126090516.4278-4-poros@redhat.com \
--to=poros@redhat.com \
--cc=dsahern@kernel.org \
--cc=ivecera@redhat.com \
--cc=jiri@resnulli.us \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
/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