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-combphy.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/kernel/drivers/phy/rockchip/phy-rockchip-inno-combphy.c b/kernel/drivers/phy/rockchip/phy-rockchip-inno-combphy.c
index d534dae..8b93016 100644
--- a/kernel/drivers/phy/rockchip/phy-rockchip-inno-combphy.c
+++ b/kernel/drivers/phy/rockchip/phy-rockchip-inno-combphy.c
@@ -14,6 +14,7 @@
#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/phy/phy.h>
+#include <linux/phy/pcie.h>
#include <linux/regmap.h>
#include <linux/reset.h>
#include <dt-bindings/phy/phy.h>
@@ -545,7 +546,7 @@
return 0;
}
-static int rockchip_combphy_set_mode(struct phy *phy, enum phy_mode mode)
+static int rockchip_combphy_set_mode(struct phy *phy, enum phy_mode mode, int submode)
{
struct rockchip_combphy_priv *priv = phy_get_drvdata(phy);
u32 reg;
@@ -555,9 +556,9 @@
reg = readl(priv->mmio + 0x21a8);
- if (PHY_MODE_PCIE_EP == mode)
+ if (PHY_MODE_PCIE_EP == submode)
reg |= (0x1 << 2);
- else if (PHY_MODE_PCIE_RC == mode)
+ else if (PHY_MODE_PCIE_RC == submode)
reg &= ~(0x1 << 2);
else
return -EINVAL;
--
Gitblit v1.6.2