diff options
| author | AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> | 2026-09-11 09:40:14 +0200 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2026-09-13 16:05:23 +0530 |
| commit | de7f29a1fe1dc2864d8a47f8c39d508442cae167 (patch) | |
| tree | bf3286f48dfa67821868a864fc8ed1f2397344fd /scripts/container | |
| parent | 48e97c59a49c9e90270f5e3d221db253b76de5da (diff) | |
| download | linux-stable-de7f29a1fe1dc2864d8a47f8c39d508442cae167.tar.gz linux-stable-de7f29a1fe1dc2864d8a47f8c39d508442cae167.zip | |
phy: mediatek: phy-mtk-hdmi-mt8195: Fix PLL calc divisor overflow
When trying to calculate a PLL rate for target display resolutions
above 2560x1440, 24bpp, 30Hz, the pixel clock value will be more
than 32-bits long but the division to finally calculate the digital
clock divider is being done with div_u64(), which expects a 32bit
unsigned divisor.
Fix the overflow by using div64_u64() instead.
Fixes: 9d9ff3d2a4a5 ("phy: mediatek: hdmi: mt8195: fix wrong pll calculus")
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patch.msgid.link/20260911074015.9994-2-angelogioacchino.delregno@collabora.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'scripts/container')
0 files changed, 0 insertions, 0 deletions
