From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Thu, 04 Jan 2024 10:08:02 +0000 Subject: [PATCH] disable FB --- kernel/drivers/gpu/drm/rockchip/rk628/rk628_combtxphy.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/kernel/drivers/gpu/drm/rockchip/rk628/rk628_combtxphy.c b/kernel/drivers/gpu/drm/rockchip/rk628/rk628_combtxphy.c index 8cdb50c..cbe7923 100644 --- a/kernel/drivers/gpu/drm/rockchip/rk628/rk628_combtxphy.c +++ b/kernel/drivers/gpu/drm/rockchip/rk628/rk628_combtxphy.c @@ -366,6 +366,10 @@ ref_clk = clk_get_rate(combtxphy->ref_clk) / 1000; /* khz */ if (combtxphy->division_mode) ref_clk /= 2; + + if (!ref_clk) + return -EINVAL; + /* * the reference clock at PFD(FPFD = ref_clk / ref_div) about * 25MHz is recommende, FPFD must range from 16MHz to 35MHz, -- Gitblit v1.6.2