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/pci/controller/dwc/pcie-designware.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/drivers/pci/controller/dwc/pcie-designware.c b/kernel/drivers/pci/controller/dwc/pcie-designware.c
index daa8885..45f467f 100644
--- a/kernel/drivers/pci/controller/dwc/pcie-designware.c
+++ b/kernel/drivers/pci/controller/dwc/pcie-designware.c
@@ -591,7 +591,7 @@
 	if (pci->n_fts[1]) {
 		val = dw_pcie_readl_dbi(pci, PCIE_LINK_WIDTH_SPEED_CONTROL);
 		val &= ~PORT_LOGIC_N_FTS_MASK;
-		val |= pci->n_fts[pci->link_gen - 1];
+		val |= pci->n_fts[1];
 		dw_pcie_writel_dbi(pci, PCIE_LINK_WIDTH_SPEED_CONTROL, val);
 	}
 

--
Gitblit v1.6.2