]> www.infradead.org Git - users/jedix/linux-maple.git/commit
phy: freescale: fsl-samsung-hdmi: Improve LUT search for best clock
authorAdam Ford <aford173@gmail.com>
Sun, 4 May 2025 20:40:42 +0000 (15:40 -0500)
committerVinod Koul <vkoul@kernel.org>
Wed, 14 May 2025 11:15:51 +0000 (12:15 +0100)
commit46a87260fc4f719f58e07a53cc1b70a38d98da37
treeaa7d78558a02ea7165cd0952ef951400b45035fe
parent41db4623346777be6ce694338b5adc570c4b671d
phy: freescale: fsl-samsung-hdmi: Improve LUT search for best clock

Searching the look-up-table runs so long as the frequency in the
table is at or below the desired rate.  This works well in most
cases, but the next entry in the LUT might be closer to the
nominal value than the lower one.  Add some logic to check
the higer value is any closer to the nominal value and use it.

Signed-off-by: Adam Ford <aford173@gmail.com>
Link: https://lore.kernel.org/r/20250504204043.418924-3-aford173@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/freescale/phy-fsl-samsung-hdmi.c