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/phy/rockchip/phy-rockchip-inno-dsidphy.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/kernel/drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c b/kernel/drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c
index 04007a0..f3380b0 100644
--- a/kernel/drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c
+++ b/kernel/drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c
@@ -343,6 +343,9 @@
 	 * PLL_Output_Frequency: it is equal to DDR-Clock-Frequency * 2
 	 */
 	fref = prate / 2;
+	if (!fref)
+		return 0;
+
 	if (rate > 1000000000UL)
 		fout = 1000000000UL;
 	else
@@ -355,6 +358,9 @@
 	for (_prediv = min_prediv; _prediv <= max_prediv; _prediv++) {
 		u64 tmp;
 		u32 delta;
+
+		if (!_prediv)
+			continue;
 
 		tmp = (u64)fout * _prediv;
 		do_div(tmp, fref);
@@ -625,7 +631,6 @@
 
 	inno_mipi_dphy_reset(inno);
 	inno_mipi_dphy_timing_init(inno);
-	inno_mipi_dphy_lane_enable(inno);
 	inno_mipi_dphy_lane_enable(inno);
 }
 

--
Gitblit v1.6.2