]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/hisilicon/hibmc: use clock to look up the PLL value
authorLin He <helin52@huawei.com>
Sat, 9 May 2026 03:23:02 +0000 (11:23 +0800)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 13 May 2026 06:54:30 +0000 (08:54 +0200)
commit99ef3a4f1c1813cabd50bb3e8522e85e00838bb2
tree019572c927321b464b4b37bff0d8369e95c4084c
parentde2a56c71f9b223922ea8fe0192d3c1fa2954608
drm/hisilicon/hibmc: use clock to look up the PLL value

In the past, we use width and height to look up our PLL value.
But actually the actual clock check is also necessnary. There are
some resolutions that width and height same, but its clock different.
Add the clock check when using pll_table to determine the PLL value.

Fixes: da52605eea8f ("drm/hisilicon/hibmc: Add support for display engine")
Signed-off-by: Lin He <helin52@huawei.com>
Signed-off-by: Yongbang Shi <shiyongbang@huawei.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patch.msgid.link/20260509032302.2057227-5-shiyongbang@huawei.com
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c