]> www.infradead.org Git - linux.git/commit
phy: zynqmp: Only wait for PLL lock "primary" instances
authorSean Anderson <sean.anderson@linux.dev>
Fri, 28 Jun 2024 20:55:38 +0000 (16:55 -0400)
committerVinod Koul <vkoul@kernel.org>
Tue, 2 Jul 2024 13:18:09 +0000 (18:48 +0530)
commit235d8b663ab9e6cc13f8374abfffa559f50b57b6
treea2dd5b83d41a7aab4377f747656acb324373ec5c
parent6959d2367bc3503ac4ba3eb4ec6584a43150d6b3
phy: zynqmp: Only wait for PLL lock "primary" instances

For PCIe and DisplayPort, the phy instance represents the controller's
logical lane. Wait for the instance 0 phy's PLL to lock as other
instances will never lock. We do this in xpsgtr_wait_pll_lock so callers
don't have to determine the correct lane themselves.

The original comment is wrong about cumulative wait times. Since we are
just polling a bit, all subsequent waiters will finish immediately.

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Link: https://lore.kernel.org/r/20240628205540.3098010-4-sean.anderson@linux.dev
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/xilinx/phy-zynqmp.c