Home
last modified time | relevance | path

Searched hist:"687 d6bccb28238fcfa65f7c1badfdfeac498c428" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/phy/xilinx/
H A Dphy-zynqmp.cdiff 687d6bccb28238fcfa65f7c1badfdfeac498c428 Fri Jun 28 22:55:36 CEST 2024 Sean Anderson <sean.anderson@linux.dev> phy: zynqmp: Enable reference clock correctly

Lanes can use other lanes' reference clocks, as determined by refclk.
Use refclk to determine the clock to enable/disable instead of always
using the lane's own reference clock. This ensures the clock selected in
xpsgtr_configure_pll is the one enabled.

For the other half of the equation, always program REF_CLK_SEL even when
we are selecting the lane's own clock. This ensures that Linux's idea of
the reference clock matches the hardware. We use the "local" clock mux
for this instead of going through the ref clock network.

Fixes: 25d700833513 ("phy: xilinx: phy-zynqmp: dynamic clock support for power-save")
Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Link: https://lore.kernel.org/r/20240628205540.3098010-2-sean.anderson@linux.dev
Signed-off-by: Vinod Koul <vkoul@kernel.org>