🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25530

[PATCH net-next v17 08/13] dpll: sit9531x: add support to get and set priority on input pins

#25530
From: Ali Rouhi
Date: Tue, 01 Dec 2026 23:52
787 lines
49416 bytes
From: Oleg Zadorozhnyi <Oleg.Zadorozhnyi@devoxsoftware.com>

Let userspace read and set the priority kept per input and PLL; a set
rebuilds the table from it. Priority and state are separate: a priority
set on a disconnected input applies once the input is made selectable.
The range is 0 to 255 over eleven slots; inputs of equal priority keep
their table order.

A table write that leaves the best live source unchanged keeps as the
active selection the source the PLL tracks, read at the write, or the
selected one it acquires, so the PLL does not restart acquisition for
it. The XO pin of an automatic PLL reports, read-only, the priority the
table is built with for the oscillator.

A table rewritten outside the driver, by a profile reload or an I2C
tool, becomes the new configuration. The poll compares each pin with a
record taken at registration and after a state request that succeeds,
which the core notifies, and notifies a changed operational state or
priority; a notification that fails is sent again on a later tick.

Signed-off-by: Oleg Zadorozhnyi <Oleg.Zadorozhnyi@devoxsoftware.com>
Co-developed-by: Ali Rouhi <arouhi@sitime.com>
Signed-off-by: Ali Rouhi <arouhi@sitime.com>
---
 drivers/dpll/sit9531x/core.c | 181 +++++++++++++++++++++++----
 drivers/dpll/sit9531x/core.h |   8 +-
 drivers/dpll/sit9531x/dpll.c | 232 ++++++++++++++++++++++++++++++-----
 drivers/dpll/sit9531x/dpll.h |   4 +-
 drivers/dpll/sit9531x/prop.c |   7 +-
 5 files changed, 371 insertions(+), 61 deletions(-)

diff --git a/drivers/dpll/sit9531x/core.c b/drivers/dpll/sit9531x/core.c
index d0305cbf12d5..6e06e99e5ff8 100644
--- a/drivers/dpll/sit9531x/core.c
+++ b/drivers/dpll/sit9531x/core.c
@@ -609,6 +609,33 @@ bool sit9531x_input_prio_present(struct sit9531x_dev *sitdev, u8 pll_idx,
 	return !!(sitdev->chan[pll_idx].prio_mask & BIT(input_idx));
 }
 
+/*
+ * @input_idx is in hardware encoding (see sit9531x_input_hw_src()). A source
+ * the PLL has never listed reports the last slot index, 10. Caller must hold
+ * sitdev->multiop_lock.
+ */
+int sit9531x_input_prio_get(struct sit9531x_dev *sitdev, u8 pll_idx,
+			    u8 input_idx, u8 *prio)
+{
+	const struct sit9531x_chan *chan;
+
+	lockdep_assert_held(&sitdev->multiop_lock);
+
+	if (pll_idx >= SIT9531X_NUM_PLLS)
+		return -EINVAL;
+	input_idx = sit9531x_prio_src_canon(sitdev, input_idx);
+	if (input_idx >= SIT9531X_PRIO_NUM_SRC)
+		return -EINVAL;
+
+	chan = &sitdev->chan[pll_idx];
+	if (chan->cfg_known & BIT(input_idx))
+		*prio = chan->cfg_prio[input_idx];
+	else
+		*prio = SIT9531X_PRIO_MAX_SLOTS - 1;
+
+	return 0;
+}
+
 /*
  * Take the configured priorities from the hardware table: a listed source gets
  * the first slot it occupies.
@@ -726,6 +753,7 @@ static void sit9531x_prio_mask_build(struct sit9531x_dev *sitdev, u8 pll_idx,
 
 static int sit9531x_prio_table_read(struct sit9531x_dev *sitdev, u8 pll_idx,
 				    u8 *srcs);
+static int sit9531x_chan_lock_fetch(struct sit9531x_dev *sitdev, u8 pll_idx);
 static int sit9531x_chan_state_fetch(struct sit9531x_dev *sitdev, u8 pll_idx);
 
 static u8 sit9531x_prio_top_live(const struct sit9531x_dev *sitdev,
@@ -764,14 +792,14 @@ static u8 sit9531x_prio_table_code(const struct sit9531x_dev *sitdev,
 }
 
 /*
- * Pick the active selection to latch. The PLL keeps the selected source
- * unless the best live source changed; an @idle PLL, found without a
- * reference by the poll, takes the best live source. The pick is the code
- * the table lists the source by.
+ * Pick the active selection to latch. The PLL keeps the source it tracks, or
+ * the selected one it acquires, unless the best live source changed; an @idle
+ * PLL, found without a reference by the poll, takes the best live source. The
+ * pick is the code by which the table lists the source.
  */
 static u8 sit9531x_prio_activesel_pick(struct sit9531x_dev *sitdev,
 				       const u8 *old, const u8 *srcs, u8 cur,
-				       bool idle)
+				       u8 routed, bool idle)
 {
 	u8 top, code, i;
 
@@ -780,6 +808,13 @@ static u8 sit9531x_prio_activesel_pick(struct sit9531x_dev *sitdev,
 	    (idle || top != sit9531x_prio_top_live(sitdev, old)))
 		return sit9531x_prio_table_code(sitdev, srcs, top);
 
+	if (sit9531x_prio_src_usable(routed) &&
+	    sit9531x_prio_src_live(sitdev, routed)) {
+		code = sit9531x_prio_table_code(sitdev, srcs, routed);
+		if (code != SIT9531X_PRIO_SRC_NONE)
+			return code;
+	}
+
 	cur = sit9531x_prio_src_canon(sitdev, cur & SIT9531X_PRIO_NIBBLE_MASK);
 
 	if (sit9531x_prio_src_usable(cur) &&
@@ -818,6 +853,16 @@ static int sit9531x_prio_table_commit(struct sit9531x_dev *sitdev, u8 pll_idx,
 	memcpy(back, chan->table_pending ? chan->table_back : chan->prio_srcs,
 	       sizeof(back));
 
+	/*
+	 * Sample the lock state and the routed source for the pick before the
+	 * forced holdover changes them.
+	 */
+	if (!empty) {
+		rc = sit9531x_chan_lock_fetch(sitdev, pll_idx);
+		if (rc)
+			return rc;
+	}
+
 	/*
 	 * Treat a forced holdover as set by this driver only when the table is
 	 * empty, when the driver kept it for an empty table, or when a release
@@ -873,15 +918,23 @@ static int sit9531x_prio_table_commit(struct sit9531x_dev *sitdev, u8 pll_idx,
 
 	if (!empty) {
 		u8 sel = sit9531x_prio_slot_get(val, slot + 1);
+		u8 routed = SIT9531X_PRIO_SRC_NONE;
 		bool idle;
 
+		/*
+		 * The pick needs the signal state now, not as of the last poll;
+		 * the routed source and the lock state were sampled before this
+		 * write forced holdover.
+		 */
 		rc = sit9531x_input_mon_fetch(sitdev);
 		if (rc)
 			goto rollback;
+		if (chan->routed_ref != SIT9531X_REF_INVALID)
+			routed = sit9531x_input_hw_src(chan->routed_ref);
 		idle = reselect && (!chan->locked || chan->inner_lol ||
 				    chan->mode || chan->ho_freeze);
 		sel = sit9531x_prio_activesel_pick(sitdev, chan->prio_srcs,
-						   srcs, sel, idle);
+						   srcs, sel, routed, idle);
 		val = sit9531x_prio_slot_set(val, slot + 1, sel);
 	}
 
@@ -1043,6 +1096,59 @@ static int sit9531x_prio_table_apply(struct sit9531x_dev *sitdev, u8 pll_idx,
 	return sit9531x_prio_table_commit(sitdev, pll_idx, srcs, false);
 }
 
+/*
+ * Check if the device holds the table the configured priorities give for
+ * @members.
+ */
+static bool sit9531x_prio_table_held(struct sit9531x_dev *sitdev, u8 pll_idx,
+				     u16 members)
+{
+	u8 srcs[SIT9531X_PRIO_MAX_SLOTS];
+
+	sit9531x_prio_table_build(sitdev, pll_idx, members, srcs);
+
+	return !memcmp(srcs, sitdev->chan[pll_idx].prio_srcs, sizeof(srcs));
+}
+
+/*
+ * @input_idx is in hardware encoding (0-11, see sit9531x_input_hw_src()). A
+ * source not in the table keeps the priority for when it is connected. Caller
+ * must hold sitdev->multiop_lock.
+ */
+int sit9531x_input_prio_set(struct sit9531x_dev *sitdev, u8 pll_idx,
+			    u8 input_idx, u8 prio)
+{
+	struct sit9531x_chan *chan;
+	u16 old_known;
+	u8 old_prio;
+	int rc;
+
+	lockdep_assert_held(&sitdev->multiop_lock);
+
+	if (pll_idx >= SIT9531X_NUM_PLLS)
+		return -EINVAL;
+	input_idx = sit9531x_prio_src_canon(sitdev, input_idx);
+	if (input_idx >= SIT9531X_PRIO_NUM_SRC)
+		return -EINVAL;
+
+	chan = &sitdev->chan[pll_idx];
+	old_prio = chan->cfg_prio[input_idx];
+	old_known = chan->cfg_known;
+	chan->cfg_prio[input_idx] = prio;
+	chan->cfg_known |= BIT(input_idx);
+
+	if (!(chan->prio_mask & BIT(input_idx)))
+		return 0;
+
+	rc = sit9531x_prio_table_apply(sitdev, pll_idx, chan->prio_mask);
+	if (rc && !sit9531x_prio_table_held(sitdev, pll_idx, chan->prio_mask)) {
+		chan->cfg_prio[input_idx] = old_prio;
+		chan->cfg_known = old_known;
+	}
+
+	return rc;
+}
+
 /*
  * Removing the last source leaves an empty table, which keeps the PLL in
  * holdover. Caller must hold sitdev->multiop_lock.
@@ -1333,14 +1439,13 @@ static int sit9531x_chan_routed_ref_read(struct sit9531x_dev *sitdev,
 }
 
 /*
- * Read the PLL's run, lock and holdover state, mode, selection and priority
- * table.
+ * Read the PLL's run, lock and holdover-freeze state and, while it tracks a
+ * reference, the routed source. Caller must hold sitdev->multiop_lock.
  */
-static int sit9531x_chan_state_fetch(struct sit9531x_dev *sitdev, u8 pll_idx)
+static int sit9531x_chan_lock_fetch(struct sit9531x_dev *sitdev, u8 pll_idx)
 {
-	u8 status, outer_lol, inner_lol, ho_freeze, pll_status_1;
 	struct sit9531x_chan *chan = &sitdev->chan[pll_idx];
-	u8 srcs[SIT9531X_PRIO_MAX_SLOTS];
+	u8 status, outer_lol, inner_lol, ho_freeze;
 	u8 routed = SIT9531X_REF_INVALID;
 	bool active, tracking;
 	int rc;
@@ -1386,6 +1491,34 @@ static int sit9531x_chan_state_fetch(struct sit9531x_dev *sitdev, u8 pll_idx)
 			return rc;
 	}
 
+	/* STATUS_1_GENERIC reports loss of lock, so invert it. */
+	chan->active = active;
+	chan->locked = active && !(outer_lol & BIT(pll_idx));
+	chan->mode = !!(status & SIT9531X_PLL_STATUS_OUTER_DIS);
+	chan->routed_ref = routed;
+	if (chan->manual_input && routed != SIT9531X_REF_INVALID)
+		chan->manual_ref = routed;
+	chan->inner_lol = !!(inner_lol & BIT(pll_idx));
+	chan->ho_freeze = !!(ho_freeze & BIT(pll_idx));
+
+	return 0;
+}
+
+/*
+ * Read the PLL's run, lock and holdover state, mode, selection and priority
+ * table.
+ */
+static int sit9531x_chan_state_fetch(struct sit9531x_dev *sitdev, u8 pll_idx)
+{
+	struct sit9531x_chan *chan = &sitdev->chan[pll_idx];
+	u8 srcs[SIT9531X_PRIO_MAX_SLOTS];
+	u8 pll_status_1;
+	int rc;
+
+	rc = sit9531x_chan_lock_fetch(sitdev, pll_idx);
+	if (rc)
+		return rc;
+
 	rc = sit9531x_read_pll_u8(sitdev, pll_idx, SIT9531X_PLL_REG_STATUS_1,
 				  &pll_status_1);
 	if (rc)
@@ -1408,15 +1541,6 @@ static int sit9531x_chan_state_fetch(struct sit9531x_dev *sitdev, u8 pll_idx)
 			sit9531x_prio_cfg_seed(sitdev, pll_idx, srcs);
 	}
 
-	/* STATUS_1_GENERIC reports loss of lock, so invert it. */
-	chan->active = active;
-	chan->locked = active && !(outer_lol & BIT(pll_idx));
-	chan->mode = !!(status & SIT9531X_PLL_STATUS_OUTER_DIS);
-	chan->routed_ref = routed;
-	if (chan->manual_input && routed != SIT9531X_REF_INVALID)
-		chan->manual_ref = routed;
-	chan->inner_lol = !!(inner_lol & BIT(pll_idx));
-	chan->ho_freeze = !!(ho_freeze & BIT(pll_idx));
 	chan->ho_valid = !!(pll_status_1 & SIT9531X_PLL_STATUS_1_HO_VALID);
 	chan->stale = false;
 
@@ -2333,8 +2457,8 @@ static void sit9531x_dpll_pins_unregister(struct sit9531x_dpll *sitdpll)
 		sit9531x_dpll_pin_unregister(pin);
 
 	/*
-	 * Detached under multiop_lock, as every list change is; the poll is
-	 * already canceled or not yet queued.
+	 * Detached under multiop_lock, which callbacks walking the list hold;
+	 * the poll is already canceled or not yet queued.
 	 */
 	mutex_lock(&sitdev->multiop_lock);
 	list_splice_init(&sitdpll->pins, &dead);
@@ -2387,13 +2511,24 @@ static int sit9531x_dpll_pins_register(struct sit9531x_dpll *sitdpll)
 			goto error;
 		}
 
+		/*
+		 * Taken before the pin is published; see
+		 * sit9531x_dpll_pin_baseline().
+		 */
+		mutex_lock(&sitdpll->dev->multiop_lock);
+		sit9531x_dpll_pin_baseline(pin);
+		mutex_unlock(&sitdpll->dev->multiop_lock);
+
 		rc = sit9531x_dpll_pin_register(pin, index);
 		if (rc) {
 			kfree(pin);
 			goto error;
 		}
 
-		/* List changes are made under multiop_lock */
+		/*
+		 * Earlier pins are already reachable from netlink, and the
+		 * walks over this list run under multiop_lock.
+		 */
 		mutex_lock(&sitdpll->dev->multiop_lock);
 		list_add(&pin->list, &sitdpll->pins);
 		mutex_unlock(&sitdpll->dev->multiop_lock);
diff --git a/drivers/dpll/sit9531x/core.h b/drivers/dpll/sit9531x/core.h
index 31c7d434978a..222f34a79b9b 100644
--- a/drivers/dpll/sit9531x/core.h
+++ b/drivers/dpll/sit9531x/core.h
@@ -130,8 +130,8 @@ struct sit9531x_out {
  * @active: PLL reached its active state; an unused PLL never does and its
  *   loss-of-lock bit stays clear
  * @locked: PLL is active and its outer loop reports lock
- * @stale: last state read failed; the fields hold the previous sample and
- *   are not reported
+ * @stale: last state read failed; the fields hold an earlier sample, or
+ *   part of a new one, and are not reported
  * @mode: 0 = sync (outer loop enabled), 1 = free-run
  * @routed_ref: input the device routes to the PLL, as a logical index
  *   (INTSYNC: SIT9531X_INTSYNC_PIN_ID); SIT9531X_REF_INVALID if none
@@ -287,6 +287,10 @@ int sit9531x_input_enable(struct sit9531x_dev *sitdev, u8 index);
 
 bool sit9531x_input_prio_present(struct sit9531x_dev *sitdev,
 				 u8 pll_idx, u8 input_idx);
+int sit9531x_input_prio_set(struct sit9531x_dev *sitdev, u8 pll_idx,
+			    u8 input_idx, u8 prio);
+int sit9531x_input_prio_get(struct sit9531x_dev *sitdev, u8 pll_idx,
+			    u8 input_idx, u8 *prio);
 int sit9531x_input_prio_remove(struct sit9531x_dev *sitdev, u8 pll_idx,
 			       u8 input_idx);
 int sit9531x_input_prio_add(struct sit9531x_dev *sitdev, u8 pll_idx,
diff --git a/drivers/dpll/sit9531x/dpll.c b/drivers/dpll/sit9531x/dpll.c
index 5d16183aa1ae..3a31d0707127 100644
--- a/drivers/dpll/sit9531x/dpll.c
+++ b/drivers/dpll/sit9531x/dpll.c
@@ -34,6 +34,14 @@ sit9531x_dpll_is_xo_pin(const struct sit9531x_dpll_pin *pin)
 	       pin->id == SIT9531X_MAX_INPUTS;
 }
 
+/* Check if the pin's state and priority can change without a request */
+static bool
+sit9531x_dpll_is_selection_pin(const struct sit9531x_dpll_pin *pin)
+{
+	return sit9531x_dpll_is_input_pin(pin) &&
+	       !sit9531x_dpll_is_xo_pin(pin);
+}
+
 /*
  * A frozen PLL with an empty table is in forced holdover; report holdover only
  * while its holdover memory is valid.
@@ -180,7 +188,7 @@ const struct dpll_device_ops sit9531x_dpll_device_ops = {
  * one. On manual input select, the selected input is CONNECTED: the one the
  * select register names, or the one the PLL last tracked when the select pins
  * or the indirect choice pick it; a state request is refused. The XO pin is
- * always CONNECTED.
+ * always CONNECTED and reports its priority read-only.
  */
 
 /* Caller must hold sitdev->multiop_lock. */
@@ -403,6 +411,10 @@ sit9531x_dpll_input_pin_state_on_dpll_set(const struct dpll_pin *pin,
 		break;
 	}
 
+	/* The core notifies this request; the poll compares to this record */
+	if (!rc)
+		sit9531x_dpll_pin_baseline(dpin);
+
 	mutex_unlock(&sitdev->multiop_lock);
 
 	if (rc == -ENOSPC)
@@ -414,11 +426,82 @@ sit9531x_dpll_input_pin_state_on_dpll_set(const struct dpll_pin *pin,
 	return rc;
 }
 
+/* Report the configured priority of the source on this PLL, listed or not */
+static int
+sit9531x_dpll_input_pin_prio_get(const struct dpll_pin *pin, void *pin_priv,
+				 const struct dpll_device *dpll,
+				 void *dpll_priv, u32 *prio,
+				 struct netlink_ext_ack *extack)
+{
+	struct sit9531x_dpll_pin *dpin = pin_priv;
+	struct sit9531x_dpll *sitdpll = dpll_priv;
+	struct sit9531x_dev *sitdev = sitdpll->dev;
+	u8 slot;
+	int rc;
+
+	mutex_lock(&sitdev->multiop_lock);
+	rc = sit9531x_input_prio_get(sitdev, sitdpll->id,
+				     sit9531x_input_hw_src(dpin->id), &slot);
+	mutex_unlock(&sitdev->multiop_lock);
+	if (rc)
+		return rc;
+
+	*prio = slot;
+	return 0;
+}
+
+/*
+ * Rewrite the Page 1 priority table for a listed pin; an unlisted pin keeps the
+ * priority until it is connected.
+ */
+static int
+sit9531x_dpll_input_pin_prio_set(const struct dpll_pin *pin, void *pin_priv,
+				 const struct dpll_device *dpll,
+				 void *dpll_priv, u32 prio,
+				 struct netlink_ext_ack *extack)
+{
+	struct sit9531x_dpll_pin *dpin = pin_priv;
+	struct sit9531x_dpll *sitdpll = dpll_priv;
+	struct sit9531x_dev *sitdev = sitdpll->dev;
+	int rc;
+
+	if (dpin->dir != DPLL_PIN_DIRECTION_INPUT) {
+		NL_SET_ERR_MSG(extack, "Priority applies only to input pins");
+		return -EINVAL;
+	}
+
+	if (prio > U8_MAX) {
+		NL_SET_ERR_MSG(extack, "Priority out of range (0-255)");
+		return -EINVAL;
+	}
+
+	mutex_lock(&sitdev->multiop_lock);
+	if (sit9531x_chan_state_get(sitdev, sitdpll->id)->manual_input) {
+		mutex_unlock(&sitdev->multiop_lock);
+		return sit9531x_dpll_manual_select_refuse(extack);
+	}
+	rc = sit9531x_input_prio_set(sitdev, sitdpll->id,
+				     sit9531x_input_hw_src(dpin->id),
+				     (u8)prio);
+	if (!rc)
+		dpin->prio = prio;
+	mutex_unlock(&sitdev->multiop_lock);
+
+	if (rc) {
+		NL_SET_ERR_MSG(extack, "Failed to set input priority");
+		return rc;
+	}
+
+	return 0;
+}
+
 static const struct dpll_pin_ops sit9531x_dpll_input_pin_ops = {
 	.direction_get		= sit9531x_dpll_input_pin_direction_get,
 	.state_on_dpll_get	= sit9531x_dpll_input_pin_state_on_dpll_get,
 	.state_on_dpll_set	= sit9531x_dpll_input_pin_state_on_dpll_set,
 	.operstate_on_dpll_get	= sit9531x_dpll_input_pin_operstate_on_dpll_get,
+	.prio_get		= sit9531x_dpll_input_pin_prio_get,
+	.prio_set		= sit9531x_dpll_input_pin_prio_set,
 };
 
 /*
@@ -443,7 +526,10 @@ static const struct dpll_pin_ops sit9531x_dpll_input_pin_manual_ops = {
 	.operstate_on_dpll_get	= sit9531x_dpll_input_pin_operstate_on_dpll_get,
 };
 
-/* The XO feeds every PLL and is always connected. */
+/*
+ * The XO feeds every PLL and is always connected. The priority is the one the
+ * PLL's table sorts the OCXO source by; it has no setter.
+ */
 
 static int
 sit9531x_dpll_xo_pin_state_on_dpll_get(const struct dpll_pin *pin,
@@ -460,6 +546,13 @@ sit9531x_dpll_xo_pin_state_on_dpll_get(const struct dpll_pin *pin,
 static const struct dpll_pin_ops sit9531x_dpll_xo_pin_ops = {
 	.direction_get		= sit9531x_dpll_input_pin_direction_get,
 	.state_on_dpll_get	= sit9531x_dpll_xo_pin_state_on_dpll_get,
+	.prio_get		= sit9531x_dpll_input_pin_prio_get,
+};
+
+/* For a PLL on manual input select, which uses no priority table */
+static const struct dpll_pin_ops sit9531x_dpll_xo_pin_manual_ops = {
+	.direction_get		= sit9531x_dpll_input_pin_direction_get,
+	.state_on_dpll_get	= sit9531x_dpll_xo_pin_state_on_dpll_get,
 };
 
 static int
@@ -482,19 +575,82 @@ const struct dpll_pin_ops *
 sit9531x_dpll_pin_ops_get(const struct sit9531x_dpll_pin *pin)
 {
 	const struct sit9531x_dev *sitdev = pin->dpll->dev;
+	bool manual;
 
 	if (!sit9531x_dpll_is_input_pin(pin))
 		return &sit9531x_dpll_output_pin_ops;
-	if (sit9531x_dpll_is_xo_pin(pin))
-		return &sit9531x_dpll_xo_pin_ops;
 	/* As read at probe, before any pin is registered */
-	if (sit9531x_chan_state_get(sitdev, pin->dpll->id)->manual_input)
-		return &sit9531x_dpll_input_pin_manual_ops;
-	return &sit9531x_dpll_input_pin_ops;
+	manual = sit9531x_chan_state_get(sitdev, pin->dpll->id)->manual_input;
+	if (sit9531x_dpll_is_xo_pin(pin))
+		return manual ? &sit9531x_dpll_xo_pin_manual_ops :
+				&sit9531x_dpll_xo_pin_ops;
+	return manual ? &sit9531x_dpll_input_pin_manual_ops :
+			&sit9531x_dpll_input_pin_ops;
+}
+
+/* Caller must hold sitdev->multiop_lock. */
+static void sit9531x_dpll_pin_snapshot(struct sit9531x_dpll *sitdpll,
+				       const struct sit9531x_dpll_pin *pin,
+				       enum dpll_pin_state *state,
+				       enum dpll_pin_operstate *operstate,
+				       u8 *prio)
+{
+	struct sit9531x_dev *sitdev = sitdpll->dev;
+	u8 id = pin->id;
+
+	sit9531x_dpll_selection_state_get(sitdev, sitdpll, id, state);
+	sit9531x_dpll_selection_operstate_get(sitdev, sitdpll, id, operstate);
+	/* A PLL on manual input select reports no priority */
+	if (sit9531x_chan_state_get(sitdev, sitdpll->id)->manual_input ||
+	    sit9531x_input_prio_get(sitdev, sitdpll->id,
+				    sit9531x_input_hw_src(id), prio))
+		*prio = pin->prio;
+}
+
+/*
+ * Record the priority the XO pin reports; return true if it changed. Caller
+ * must hold sitdev->multiop_lock.
+ */
+static bool sit9531x_dpll_xo_prio_update(struct sit9531x_dpll *sitdpll,
+					 struct sit9531x_dpll_pin *pin)
+{
+	struct sit9531x_dev *sitdev = sitdpll->dev;
+	u8 prio;
+
+	if (sit9531x_chan_state_get(sitdev, sitdpll->id)->manual_input ||
+	    sit9531x_input_prio_get(sitdev, sitdpll->id,
+				    sit9531x_input_hw_src(pin->id), &prio) ||
+	    prio == pin->prio)
+		return false;
+
+	pin->prio = prio;
+
+	return true;
+}
+
+/*
+ * Record what the pin reports, for the poll to compare: before the pin is
+ * registered, so the first poll notifies a change a request made, and after a
+ * state request that succeeded, which the core notifies. Caller must hold
+ * sitdev->multiop_lock.
+ */
+void sit9531x_dpll_pin_baseline(struct sit9531x_dpll_pin *pin)
+{
+	struct sit9531x_dpll *sitdpll = pin->dpll;
+
+	lockdep_assert_held(&sitdpll->dev->multiop_lock);
+
+	if (sit9531x_dpll_is_xo_pin(pin))
+		sit9531x_dpll_xo_prio_update(sitdpll, pin);
+	if (!sit9531x_dpll_is_selection_pin(pin))
+		return;
+
+	sit9531x_dpll_pin_snapshot(sitdpll, pin, &pin->pin_state,
+				   &pin->operstate, &pin->prio);
 }
 
 /*
- * Send notifications for changed lock status and pin state; called from
+ * Notify a changed lock status, pin state or priority; called from
  * sit9531x_dev_periodic_work().
  */
 void sit9531x_dpll_changes_check(struct sit9531x_dpll *sitdpll)
@@ -527,40 +683,52 @@ void sit9531x_dpll_changes_check(struct sit9531x_dpll *sitdpll)
 	if (sitdpll->ntf_pending && !dpll_device_change_ntf(sitdpll->dpll_dev))
 		sitdpll->ntf_pending = false;
 
+	mutex_lock(&sitdev->multiop_lock);
 	list_for_each_entry(pin, &sitdpll->pins, list) {
 		enum dpll_pin_operstate operstate;
-		const struct dpll_pin_ops *ops;
 		enum dpll_pin_state state;
 		bool changed;
+		u8 prio;
 
-		/*
-		 * Only references change state or operational state without a
-		 * request.
-		 */
-		if (!sit9531x_dpll_is_input_pin(pin) ||
-		    sit9531x_dpll_is_xo_pin(pin))
+		/* A table written outside the driver moves the XO priority */
+		if (sit9531x_dpll_is_xo_pin(pin)) {
+			pin->ntf_pending |=
+				sit9531x_dpll_xo_prio_update(sitdpll, pin);
 			continue;
+		}
 
-		ops = sit9531x_dpll_pin_ops_get(pin);
-		rc = ops->state_on_dpll_get(pin->dpll_pin, pin,
-					    sitdpll->dpll_dev, sitdpll,
-					    &state, NULL);
-		if (rc)
-			continue;
-		rc = ops->operstate_on_dpll_get(pin->dpll_pin, pin,
-						sitdpll->dpll_dev, sitdpll,
-						&operstate, NULL);
-		if (rc)
+		if (!sit9531x_dpll_is_selection_pin(pin))
 			continue;
 
-		changed = pin->seen && (state != pin->pin_state ||
-				       operstate != pin->operstate);
+		sit9531x_dpll_pin_snapshot(sitdpll, pin, &state, &operstate,
+					   &prio);
+
+		changed = state != pin->pin_state ||
+			  operstate != pin->operstate || prio != pin->prio;
+		if (changed)
+			dev_dbg(sitdev->dev,
+				"%s: state %u->%u operstate %u->%u prio %u->%u\n",
+				pin->label, pin->pin_state, state,
+				pin->operstate, operstate, pin->prio, prio);
+
 		pin->pin_state = state;
 		pin->operstate = operstate;
-		pin->seen = true;
-		if (changed) {
-			dev_dbg(sitdev->dev, "%s state changed\n", pin->label);
-			dpll_pin_change_ntf(pin->dpll_pin);
-		}
+		pin->prio = prio;
+
+		/*
+		 * The notification takes DPLL-subsystem locks the callbacks run
+		 * under; send it after dropping multiop_lock.
+		 */
+		if (changed)
+			pin->ntf_pending = true;
+	}
+	mutex_unlock(&sitdev->multiop_lock);
+
+	list_for_each_entry(pin, &sitdpll->pins, list) {
+		if (!pin->ntf_pending)
+			continue;
+		if (dpll_pin_change_ntf(pin->dpll_pin))
+			continue;
+		pin->ntf_pending = false;
 	}
 }
diff --git a/drivers/dpll/sit9531x/dpll.h b/drivers/dpll/sit9531x/dpll.h
index f1634ef99602..bf68455c3945 100644
--- a/drivers/dpll/sit9531x/dpll.h
+++ b/drivers/dpll/sit9531x/dpll.h
@@ -29,9 +29,10 @@ struct sit9531x_dpll_pin {
 	char				label[8];	/* "IN0", "OUT3" */
 	enum dpll_pin_direction		dir;
 	u8				id;		/* hardware index */
+	u8				prio;
 	enum dpll_pin_state		pin_state;
 	enum dpll_pin_operstate		operstate;
-	bool				seen;	/* baseline taken by the poll */
+	bool				ntf_pending;
 };
 
 struct sit9531x_dpll {
@@ -57,6 +58,7 @@ int  sit9531x_dpll_register(struct sit9531x_dpll *sitdpll);
 void sit9531x_dpll_unregister(struct sit9531x_dpll *sitdpll);
 
 void sit9531x_dpll_lock_status_baseline(struct sit9531x_dpll *sitdpll);
+void sit9531x_dpll_pin_baseline(struct sit9531x_dpll_pin *pin);
 void sit9531x_dpll_changes_check(struct sit9531x_dpll *sitdpll);
 
 #endif /* _SIT9531X_DPLL_H */
diff --git a/drivers/dpll/sit9531x/prop.c b/drivers/dpll/sit9531x/prop.c
index 7cc690d92c60..cfe1ab044c0b 100644
--- a/drivers/dpll/sit9531x/prop.c
+++ b/drivers/dpll/sit9531x/prop.c
@@ -25,8 +25,8 @@
 static const u8 sit9531x_out_freq_mult[] = { 15, 20, 24, 30, 32, 40, 48 };
 
 /*
- * An input pin is registered with all four PLLs and takes a state request
- * on those found on automatic input selection at probe.
+ * An input pin is registered with all four PLLs and takes a state or
+ * priority request on those found on automatic input selection at probe.
  */
 static u32 sit9531x_prop_input_caps(const struct sit9531x_dev *sitdev)
 {
@@ -34,7 +34,8 @@ static u32 sit9531x_prop_input_caps(const struct sit9531x_dev *sitdev)
 
 	for (i = 0; i < SIT9531X_NUM_PLLS; i++) {
 		if (!sit9531x_chan_state_get(sitdev, i)->manual_input)
-			return DPLL_PIN_CAPABILITIES_STATE_CAN_CHANGE;
+			return DPLL_PIN_CAPABILITIES_PRIORITY_CAN_CHANGE |
+			       DPLL_PIN_CAPABILITIES_STATE_CAN_CHANGE;
 	}
 
 	return 0;
-- 
2.39.2 (Apple Git-143)

Technical Details
Message-ID: <20261201235202.97645-9-arouhi@sitime.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375433-linux-kernel-netdev=dewy.ru
References: <20261201235202.97645-1-arouhi@sitime.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375433-linux-kernel-netdev=dewy.ru
From: arouhi@sitime.com (Ali Rouhi)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v17 08/13] dpll: sit9531x: add support to get and set
 priority on input pins
Date: Tue, 1 Dec 2026 23:52:06 +0000
Organization: Usenet Network
Message-ID: <20261201235202.97645-9-arouhi@sitime.com>
References: <20261201235202.97645-1-arouhi@sitime.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="1846127"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:pxlv5jLw/yIFsfCW1xtnACqfiQo= sha256:FxJFJuC6oBCuJcVIR7FLHzWOGEji/MhjAcQDIpGMfzk=
	sha1:nWqWcKuILm9SLr5aKRIxGU8eDlk= sha256:SVL39KNXDIwMzO9yYAkFsdx97hDwfZGJEQp/JS66jME=
Content-Language: en-US
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
	X-MS-Has-Attach
	X-MS-TNEF-Correlator
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 93C671174F1; Wed,  2 Dec 2026 02:55:56 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.95
X-Spam-Status: No, score=-1.95 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=sitime.com header.b=Gf+FyCHt; dkim=pass (2048-bit key)
	header.d=sitime.onmicrosoft.com header.b=m3TVsSW4
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 FSlCQXIFOv0D;
	Wed,  2 Dec 2026 02:55:52 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375433-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=sitime.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id CEA211174D8; Wed,  2 Dec 2026 02:55:38 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id E648437731; Tue,  1 Dec 2026 23:54:05 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796169144;
	b=szQZWay93NIp4GBao8nU+3Gdyj8sC8hX8gXpLkzFgGhUxROoEmr6ey61GAhe8NNVsy72
	 62G3ivGX6ak5liprJU5hl5C+tQlX6xr7U/3HXBp3yiikRagbdNbXq6hSGaxiD2LC/cLHK
	 dyizw1ge9NI9iiQR2FV14oShZOPSroXtc5X2MnIzK3LkHoz1g4Bt7gYTi2w8DV+R8mFZf
	 nPC8nNo72p0bKtgpnPDxhe2+vf6z5hxzlxDtc7VYCVyisjnflbAyLrwrhydvnEx+Inwu5
	 VIwaWOttLBsNxBa0Kz9gVqDDvFXy/Um+ZdZks6y/d20pZeSqPx3vnQJvjQIZ2k9ETeQ==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796169144;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:X-Virus-Scanned:
	 Received:DKIM-Signature:Received:Received:From:To:CC:Subject:
	 Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:
	 Accept-Language:Content-Language:X-MS-Has-Attach:X-MS-TNEF-Correlator:
	 x-ms-publictraffictype:x-ms-traffictypediagnostic:
	 x-ms-office365-filtering-correlation-id:x-ms-exchange-senderadcheck:
	 x-ms-exchange-antispam-relay:x-microsoft-antispam:
	 x-microsoft-antispam-message-info:x-forefront-antispam-report:
	 x-ms-exchange-antispam-messagedata-chunkcount:
	 x-ms-exchange-antispam-messagedata-0:Content-Type:
	 Content-Transfer-Encoding:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 X-Exchange-RoutingPolicyChecked:X-OriginatorOrg:
	 X-MS-Exchange-CrossTenant-AuthAs:X-MS-Exchange-CrossTenant-AuthSource:
	 X-MS-Exchange-CrossTenant-Network-Message-Id:
	 X-MS-Exchange-CrossTenant-originalarrivaltime:
	 X-MS-Exchange-CrossTenant-fromentityheader:
	 X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype:
	 X-MS-Exchange-CrossTenant-userprincipalname:
	 X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-MDID:X-PPE-STACK:
	 X-MDID-O:X-PPE-TRUSTED;
	bh=9eeQbLR0+BA3ZZyoBarMkkMBZnhRVopb74x5WXp6iUE=;
	b=o0RdbBRDgh9LAg2DDr8JB3JAPGxe0NnRzk0kotMDzlf+8Kap0nEd52N4YierQC7U7O8m
	 RzHilcxng3H7Suk7rTIul+hYFFqAZbmvhloyyjyadL5OLo5e8cikCrgQ4LFjJNahbnV3q
	 C1T4Vzyps0QnbVT1FHNnUJ4UmLKtGP70wyuI09X/nupddo94SJiQsJtY/Nc6vVsK0Fhp4
	 KuxOU3mRgezVuZJ7FcOJp+QmG6dmW3j1FzSnk7Sy2q7L5ps2aXXx8dh5bG+sF57CQQ5M+
	 R+qdXXFgZYy6WDLJXoBPHTFbbGoht6eAt/vLmkLB/s/T8hG9Lw0I6TLZ8gzjrfK7BTA==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; 
	dkim=pass header.d=sitime.com header.i=@sitime.com header.a=rsa-sha256 header.s=mail header.b=Gf+FyCHt;
	dkim=pass header.d=Sitime.onmicrosoft.com header.i=@Sitime.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-Sitime-onmicrosoft-com header.b=m3TVsSW4;
	dmarc=pass header.from=sitime.com;
	spf=pass smtp.mailfrom=sitime.com;
	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 E73F7606B4AC;
	Tue,  1 Dec 2026 23:52:23 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=sitime.com header.i=@sitime.com header.a=rsa-sha256 header.s=mail header.b=Gf+FyCHt;
	dkim=pass (2048-bit key) header.d=Sitime.onmicrosoft.com header.i=@Sitime.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-Sitime-onmicrosoft-com header.b=m3TVsSW4
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=67.231.154.183
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796169143;
	b=klVYGXWH+//YzG0zpHqyYpnd0fSMzxVVkGDRMWHwNvqOWW5GBFnSpr+2XhrfkDsDGofe
	 zicMhe/y6t19ZJvLGSebGZ4sr5ZWTwNXs2Xgn4s4xgBTy3p7gf4YUJ1OBCcnbotE+a6Im
	 /LyRFS/sBA5xCByKStsQ8w5fUHHcRJkrWxQy55HN8LhYd1S+9lj3iLMauAdsVLUbJ41zU
	 /m/GaOR1rjHvqk4ZRZNra12kj3IGAxVI0fgGGFwZ+8xjZfKW8yZDPmj05c/S4/NZcDv3B
	 rmxhgCmunrO116zdhryosIX8ErpzG/V65jUrx/5PlhTBdf1ZlY7T0gnRJ91HuSw+NAw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796169143;
	h=DMARC-Filter:DKIM-Signature:X-Virus-Scanned:Received:DKIM-Signature:
	 Received:Received:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:
	 Message-ID:References:In-Reply-To:Accept-Language:Content-Language:
	 X-MS-Has-Attach:X-MS-TNEF-Correlator:x-ms-publictraffictype:
	 x-ms-traffictypediagnostic:x-ms-office365-filtering-correlation-id:
	 x-ms-exchange-senderadcheck:x-ms-exchange-antispam-relay:
	 x-microsoft-antispam:x-microsoft-antispam-message-info:
	 x-forefront-antispam-report:
	 x-ms-exchange-antispam-messagedata-chunkcount:
	 x-ms-exchange-antispam-messagedata-0:Content-Type:
	 Content-Transfer-Encoding:MIME-Version:
	 X-Exchange-RoutingPolicyChecked:X-OriginatorOrg:
	 X-MS-Exchange-CrossTenant-AuthAs:X-MS-Exchange-CrossTenant-AuthSource:
	 X-MS-Exchange-CrossTenant-Network-Message-Id:
	 X-MS-Exchange-CrossTenant-originalarrivaltime:
	 X-MS-Exchange-CrossTenant-fromentityheader:
	 X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype:
	 X-MS-Exchange-CrossTenant-userprincipalname:
	 X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-MDID:X-PPE-STACK:
	 X-MDID-O:X-PPE-TRUSTED;
	bh=9eeQbLR0+BA3ZZyoBarMkkMBZnhRVopb74x5WXp6iUE=;
	b=Bn0oqFXjuii2+oqWZm2PXKfrM7FL8KukpYhVPWQ8Ucwa5sNMaU07+vnwWShfcDNW7Qnz
	 K1uxJUUH36o8eQs1hMaZozYNEzoiP3S7WwYiQSEdDga0bWPLp3z3c74Gtsh3Hw5JCik00
	 RflmIpcLhBgkSK0+uwCNuepV9f2Ecl99tlcCJXHb2t0Az6deJFz7fY0f/sKDxib5JQiMb
	 AjeUDbCfoQXG14rYGPUD+hVgxElC/vYnzjrIgeHiff4EzI+U0NbHty2DMepkslhscD7Ej
	 QW8wm4s+odEZi0ixPnNXgQUHt+BNz95kyjiMuIQ7JNAf/UrA3CtzfLJ/a631givmPpA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=pass header.from=sitime.com;
	spf=pass smtp.mailfrom=sitime.com;
	dkim=pass header.d=sitime.com header.i=@sitime.com header.a=rsa-sha256 header.s=mail header.b=Gf+FyCHt;
	dkim=pass header.d=Sitime.onmicrosoft.com header.i=@Sitime.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-Sitime-onmicrosoft-com header.b=m3TVsSW4;
	arc=pass header.oldest-pass=0 smtp.remote-ip=67.231.154.183
X-Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.183])
	(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 417D2606BAE8;
	Tue,  1 Dec 2026 23:52:21 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 417D2606BAE8
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sitime.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sitime.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sitime.com;
 h=cc:cc:content-transfer-encoding:content-transfer-encoding:content-type:content-type:date:date:from:from:in-reply-to:in-reply-to:message-id:message-id:mime-version:mime-version:references:references:subject:subject:to:to;
 s=mail; bh=9eeQbLR0+BA3ZZyoBarMkkMBZnhRVopb74x5WXp6iUE=;
 b=Gf+FyCHtFtBXuk7M+kkYTa5A3yW8PQd3wdlb9VCn816MRFq2Qi07SaW8Vylw39cxtgUKXCxWMKM0ph0DbrOfw4q3qs/npWUCnGaypW0ZhPeeH8EqrufPviBalaJO+ymViv0byRwKV2U+QBBDN/J3t6yPl7Ck7KWxNoBNIEYcqk7RFvO9AKOaQ25m+FZEjKaPmUYQsb6mlaYKiMJohB4lDyoOWK0W547C1unjaUUR07oOw8xtqXOb2QhQZMJ6/Efoc563jZmIMJ/UU5vpszdIR1z4++PmXomLHiTzzzGT1Ne8Jl89Zapems3n2ybi3Qy4qV6fr4QXt4ZX8eEJSgmHoQ==
X-Virus-Scanned: Proofpoint Essentials engine
X-Received: from PH7PR06CU001.outbound.protection.outlook.com (mail-westus3azon11020129.outbound.protection.outlook.com [52.101.201.129])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 1F93D24007E;
	Tue,  1 Dec 2026 23:52:19 +0000 (UTC)
X-ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;
 b=tCvr96ILeGZoiQfBpY3Z8EdiXAy35nKybBaU8xx+RcsDWiWOauD22oQTVR2x3GB4Gvix8AgLSGiAhCMCQ3rIx+85aGxe3d64clk3w+J8bkMosGyXKf0rvSNonjyiyysfsXaZg3ZR2eqwY9W2KFaWN0TTo9f5nhC1/Q8MQOIEw6YPN8h5i9JULPELxxLMFgvWSVIf/1fI/i1cCTwJWnktrklEyteg2IIhGFT5YLcHNlQT7zskPaOSlASjeE0D8PQAub/NtXuswKzlzZ7OUvjD4QqnMVqrPsYKn75qQESyqiPJHXkHet4swVJTtQvV0H/Qjuz6WPcDBKuwt/TBcX3Qiw==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
 s=arcselector10001;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=9eeQbLR0+BA3ZZyoBarMkkMBZnhRVopb74x5WXp6iUE=;
 b=VVY25w24Z8OPAJS0Nmk7LGEzM/YAp6C5GVoYMgl82Omzw/NYBI06bS5y2SjCqQ+v+YmUu3zu2hhEOGEgzoXqvQHvSdactpuZP3qoOeHp0N7vzPZUDZzoLmmcYbe42TXUnDMRITICqfJ9FUfVRoF1sail29y7vgMllspZ3kTsFakzjZ111JsYN1uN+JImgMGIzXuwlUa1TI8npJivV2SUMMhwZW30Q76XsiKiyU4VRtkv0X8MyssQSK9OzuUFthJ3aIwFZ1DFcB3ti9sj0W0OfCJsz+iMTlKvVR0vkCcLWLe99wEXRq+dXZKHh/9MO16AZRQ9QopPIe8Q1bTQ5NYvJA==
X-ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=sitime.com; dmarc=pass action=none header.from=sitime.com;
 dkim=pass header.d=sitime.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=Sitime.onmicrosoft.com; s=selector1-Sitime-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=9eeQbLR0+BA3ZZyoBarMkkMBZnhRVopb74x5WXp6iUE=;
 b=m3TVsSW4majsTuaDL9M6EAVDVqUyBMoW/ad87BWOMRU5YXgEmEjRmeGcQgejJHZlHP5JnhxUXO++48pLBAiOEdJasIZ6DWaaPfkwnmQo4XJD83XTrOeaC/DGPkMTcPfyptOZxZ+EIroxsc+GtLhlKybPsGzD7M0DZPTcmypqq5gbgTGOte635sZjiMf3MPalD6qjjKJNeb09ZEAq5ljnEGhgrArYJzk/SMlWLyOOkkk3T0pVpaM1QzNhEloq/zT5UGHDTkVCZw5Jx9dy4I4ImYiz7gJchIl8T4XqCFgFRrEkdR/xr6iFiaIxebwnZR4J2H4EQkLuhgQX3qef+ziPqg==
X-Received: from LVWPR20MB994915.namprd20.prod.outlook.com
 (2603:10b6:408:3bf::16) by SJ2PR20MB6330.namprd20.prod.outlook.com
 (2603:10b6:a03:502::11) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.10; Tue, 1 Dec
 2026 23:52:15 +0000
X-Received: from LVWPR20MB994915.namprd20.prod.outlook.com
 ([fe80::9551:3864:128b:8c01]) by LVWPR20MB994915.namprd20.prod.outlook.com
 ([fe80::9551:3864:128b:8c01%4]) with mapi id 15.21.0688.009; Tue, 1 Dec 2026
 23:52:15 +0000
X-CC: "ivecera@redhat.com" <ivecera@redhat.com>, "vadim.fedorenko@linux.dev"
	<vadim.fedorenko@linux.dev>, "arkadiusz.kubalewski@intel.com"
	<arkadiusz.kubalewski@intel.com>, "kuba@kernel.org" <kuba@kernel.org>,
	"pabeni@redhat.com" <pabeni@redhat.com>, "robh@kernel.org" <robh@kernel.org>,
	"krzk+dt@kernel.org" <krzk+dt@kernel.org>, "conor+dt@kernel.org"
	<conor+dt@kernel.org>, "prabhakar.mahadev-lad.rj@bp.renesas.com"
	<prabhakar.mahadev-lad.rj@bp.renesas.com>, "cjubran@nvidia.com"
	<cjubran@nvidia.com>, "Oleg.Zadorozhnyi@devoxsoftware.com"
	<Oleg.Zadorozhnyi@devoxsoftware.com>, "netdev@vger.kernel.org"
	<netdev@vger.kernel.org>, "devicetree@vger.kernel.org"
	<devicetree@vger.kernel.org>, "linux-kernel@vger.kernel.org"
	<linux-kernel@vger.kernel.org>
X-Thread-Topic: [PATCH net-next v17 08/13] dpll: sit9531x: add support to get
 and set priority on input pins
X-Thread-Index: AQHdge746Y1cfhhY0UufjhFCC2nKrA==
X-In-Reply-To: <20261201235202.97645-1-arouhi@sitime.com>
X-Accept-Language: en-US
X-authentication-results: mx.microsoft.com 1; dkim=none (message not signed)
 header.d=none;dmarc=none action=none header.from=sitime.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: LVWPR20MB994915:EE_|SJ2PR20MB6330:EE_
x-ms-office365-filtering-correlation-id: 2faf98e8-435f-4192-f72a-08df500620b0
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam:  BCL:0;ARA:13230040|376014|1800799024|23010399003|366016|38070700021|10067099003|56012099006|261026135527099003|261022075727099003|261026121527099003|261022115727099003|261021123027099003|261026130827099003|261021135927099003|261022113327099003|261021121427099003|261026140227099003|261022105027099003|261021130227099003|261028144727099003|261102123227099003|261021133027099003|261009223027099003|22082099003|18002099003|6133799003|3023799007;
x-microsoft-antispam-message-info:  Bd7cXYBs+/U+taWk4wpgByoFIGTUgF7MEMzJOCGTQn/ADc9R0vUIX2JCM9YUOnQeZYWiJZzzEtCe2FrOndwEb36IdsHQzRNeHkr5zVCRnN1xnY/imACRWJviI0DhhRE8q9w1+qUyvUXystP9Vh/jEkJdUwZIOoVk/rckLpzAp0NgG97SMWN5Cy0VBnef0AIRCDpw25PwSERAwTK+xVGEsKrs8fg/8gKqoilvrkzXKQDhVGZ7ZYGVKgrDsUKPdth1A3Qf0Wu6BHLSAmEqTjNatEzctCHs1PcKQkqgQS8PuusREONmf72Swj+9h7KrWQ9nr2ab4h8p1oL82hRkd721WVY7UKMCtQgOZ+eFJXA4CN/d7A+8ZUgWXmit8EzYluYbe46An91drKlRrB7ChlpLMC+TaubHzsLPYESqx40G9/e0POdYtG/eW2r7bdtrI6tIjKPP5kTxeMjLbKSts4WFEWV16av9iYadc6MvnmZF89LvsMlcYmad06xS+ohXaotU6mUEG+c3ikN9e4ZoniO+At2x/Pt0qXvmpS+44Tjw5fhi37Mz+rLx3hrp8ZRPa4qAzlRd4Qsj7vOs3hIVzQI1XdwC5c2OIzC4f7zvZY3GfHi7UnZ24dV19z/lDlc/2dnPmwxGuDDpb50+3/lQ9cQw37Mk5D/2D7fd14405911v0898Ud2nGlu0oYIqLiRfeAHMs7uA2wFrXJvNI76mUE3dhaEfiGyc7oonK3CRF1S2l4=
x-forefront-antispam-report:  CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LVWPR20MB994915.namprd20.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(23010399003)(366016)(38070700021)(10067099003)(56012099006)(261026135527099003)(261022075727099003)(261026121527099003)(261022115727099003)(261021123027099003)(261026130827099003)(261021135927099003)(261022113327099003)(261021121427099003)(261026140227099003)(261022105027099003)(261021130227099003)(261028144727099003)(261102123227099003)(261021133027099003)(261009223027099003)(22082099003)(18002099003)(6133799003)(3023799007);DIR:OUT;SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0:  T50qEHQw+lBAmV9Oukt7R1fqows9vUOvdVtMGE6PbcuTguw1o1eWf8FQ90SOP3Jr+PumxAKqwo66i6nZ+swlqeIf+qvP+bkf+Ouv0VUTvAMtsfHNghz0D9fkkUsAHDy2Gf7Z4NrlHYIZxPmqxZ7ympQTbjkAsLKe9neqxPreLDyYQcNOeIwjNgXwdBU74EL1UyE+Oy3Cv87Mal4TlKReIhtcTHNRAB3bGbDdkawMGRjKv0NTJXVlVZkEnGGQ0IGDQkfy9e5IjBobfkXrF9Uku51Vl5DmEH9Rrf24Snch/SdLw3UY5UbFVa5u8XEsRrq2DBZs3T3hotD4+O+7vQW8/8FWucXQWI5kv3o1CZI6tpPfzhMzmlZMLr5FUwNjFGtE7u3oDO/pOSrZ2c/mEOhxjjDMoEHjfWxAHD0XtLzfPzGozPVMIsLBRot2rCUjrl3Z1e3ic2Q/IoQJhUtvu4ks0eWsH1ItHYyBPq6BJezc2i7SekHAPrZc9fvDwyEU71WNDhtWId94GNSKgonkr3qzZF691+T5xBk+gN8plAzNudmcnWdxb2u9YYIFAjx+q/o2TsCr5aT6yI9Wh6q3T8n24ZlFw+0ByjFtNsyqDD2r5geZ7haP2IZJ8K7q6JD0IVjQ9EBZrkDoGAZft2zTE+5bW8TzDQOYIooc59gVSNtn2KRPw/1HiCGTKc19bCo154hb7i0ySPmQjAa+faT5pQNXXahB0+p2EL4S47aOEy4Q8ZH8/vibRPHl7x10P/KW2+jNo8j1kCkXEfcsetTaQ8IOitonZVcuNDS7naNt3BNTINauf/ueZ3Kpj+wVVhXd4bSoiwQI7OA0kOrE2kXZMAbT8CZQRbgYoGum/y15tqnax9nU1GeVjfjI4skIE0pVoskFV05tRxcR0FGJciYHxWHe/MCedYh+MSMAE6f95A8dKIhxWjvoT+Iqx9jkImId+JDzgKYfX1FsA7gjoNzTwN5uWwBE8NpocCId7OIgcbfVhuN1i8u6ig6WKVW6sg1voN7tSlpqU4t4HPLj3XFqANlSmbGyGYmlceENun4HMkhOrE+snABclED0f/Eli46Hkl9sc284xTeB0+g7vJRlyNMCZHM15AFHsjs3c2l7M3qNm/6iM4zHocwLI+t2sjqbbfQvx4HRMwJpbSE+YoFekSjLU1QCZkIOHkNzO3oQ76SyuyfWM+5//1qbQMz5mkCPZj3i8BfHLCQ7ve5sIdxuUX+JQRtdLSmFypju897as79BQWA5Ko4b900HzBNQCDoXHrFwf7Rf/RzolC+TFskWs/HVMTkAxjHklLdf19hr5I980BruAnw/rlPF20CfscxsXXw/Lez90fYlyNdgLACzvwLZUjK7b5mv9gTbTXhM8932WT/uSjP+FLD6ERQEx/sv+pHJrdczL45jI7WClSkI+ESvruigLi+9k87sK6V5gpJ4MmF5XMt9NcHtuB3N8v00k4RvUxTuY8IB2R2jPerJkCp4jC+DpwpAy9CyM1hX4uT/PxqK7rLqMdXD5HpVVooxbkrxV5xLmM10Vl3tIpfkbfMfIi80SQladTHfiXHqpkI/d+5QqYJR/WqYDAVOa7MDPVLjU2hu7Kg0tvreVQEk5+4ghGYudXGfBqVlPs144ho0U8GDX/vgq3xto5SYWXukG7lRB5PvYTJvOY6D+lIErIyUnzTtHqinZ8ve4VDTelNXt58/I3/ykJnxhQBSaTdaCxvH
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
X-Exchange-RoutingPolicyChecked: 	O6S5bCEvqPJ5RlDKLfNzjU2t/7y+WNbo65wzqa47FHatFmmTT8tsisrqW0BgZiHkmN4hbaALb0RN4tTG1zczzkQjscfNlDTD5zlV7LVw427PIgeFZtoSuNOii2JYG/zvBiMdh5Ie/XYvsfwqTlVSsEpKk/nfVGUim0iwh7Cgt53T96JkRYBxO8Ds6plfZserZBPrb+bdHCtkVRk0Lvc9rNPbMkMomTSbqHBJ4GQnCfOAjMlSpSJ1em5xjD2tGniJcsNJxDAkYGhuDqt2sotYlCtF8TzNuZmu125p+ygrvuWUHm9Dd4TweoHE0Z7raRNhxSHHhC87SOwdNvgWxBm1Tg==
X-OriginatorOrg: sitime.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: LVWPR20MB994915.namprd20.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 2faf98e8-435f-4192-f72a-08df500620b0
X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Dec 2026 23:52:06.7033
 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 8fb55916-cf10-4b0d-96f4-cf3952657263
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: M1vuDEG5DsJMqKs/x8FFmiB7Mfob5xIcSfHUf0eGN2u8VTjzgv1y7ZzLexxXtz8YYavy28g+WWOCvw0uN9X1Rw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR20MB6330
X-MDID: 1796169139-LR7lvLwl1Ibc
X-PPE-STACK: {"stack":"us1"}
X-MDID-O:  us1;at1;1796169139;LR7lvLwl1Ibc;<arouhi@sitime.com>;ba04557de9d2da8490f5f1e6de07b967
X-PPE-TRUSTED: V=1;DIR=OUT;