Re: [PATCH net-next v2 0/9] dpll: do not serialize driver callbacks under global dpll_lock
From: Ivan Vecera
Date: Wed Nov 25 2026 - 11:41:49 EST
On 11/25/26 16:56, Kubalewski, Arkadiusz wrote:
From: Ivan Vecera <ivecera@xxxxxxxxxx>
Sent: Wednesday, November 25, 2026 3:32 PM
[...]
I fully agree with you guys... I also don't like the way how the ice
implemented pin sharing
Could you elaborate on that?
Thank you!
Arkadiusz
Sure. ice uses the API as it was designed, so this is more about the
model than about the driver. To support E825, two series extended the
core so that ice can plug into the objects of another driver:
- "dpll: Core improvements and ice E825-C SyncE support", which I
posted myself together with your ice patch, added fwnode
associations, the notifier chain and the MUX pin type in zl3073x,
so that ice can register its RCLK pins under a zl3073x input pin.
- "dpll/ice: Add generic DPLL type and full TX reference clock control
for E825" allowed registering a pin found by fwnode with a DPLL of
another driver, added the notification source ID and let fwnode
pins attempt a state change without the capability bit, so that ice
can register zl3073x output pins with its TXC and TSPLL DPLLs. The
same series also carried five fixes for the on-pin and notification
paths.
On GNR-D this leads to:
- A pin-get of a zl3073x output pin runs zl3073x callbacks for the pin
attributes and ice callbacks for the TXC or TSPLL registration, and
a notification that ice sends for the SyncE pin runs zl3073x
callbacks from ice context.
- The zl3073x input has to be of type MUX, although the mux is the CGU
in the E825. The RCLK pins are registered with the zl3073x DPLLs as
well, and the ice callbacks get the private data of the zl3073x
parent pin.
- The same pin reports direction output on the zl3073x DPLLs and input
on the ice DPLLs, and the properties ice fills for it are never
used, because the zl3073x pin is.
- ice follows the lifetime of the zl3073x pins with references, the
notifier and a work item that waits for the ice init and drops the
ice notifications by the source ID.
The RFC keeps every pin with the driver that created it and describes
the board wiring as a static link between two pins, found through the
same fwnode references. ice gets its own pins for the TXC and TSPLL
inputs, and the CGU RCLK muxes become ice DPLL devices with the port
RCLK pins as inputs, whose outputs are linked to the zl3073x inputs.
No callback then sees an object of another driver, and the special
cases above go away.
Thanks,
Ivan