summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Semin <fancer.lancer@gmail.com>2023-09-14 03:29:22 +0300
committerSerge Semin <fancer.lancer@gmail.com>2026-08-06 01:02:25 +0300
commite4475607213869795551fd83a98e7e6ff8be631f (patch)
treedf399c09b032ec97a8e3e52270ca91524a48ae36
parent1456dfc6a847977825d7d24f37ffadbe1a6ac74b (diff)
downloadlinux-e4475607213869795551fd83a98e7e6ff8be631f.tar.gz
linux-e4475607213869795551fd83a98e7e6ff8be631f.zip
PCI: bt1: Disable DBI CS2 by default
Even though the DBI CS2 flag is disabled by default in hardware it might be left enabled by the system firmware (i.e. BFK3.1 board one). Disable it for sure in order to prevent some of the DW PCIe RC CSRs having unexpected semantic. Fixes: ba6ed462dcf4 ("PCI: dwc: Add Baikal-T1 PCIe controller support") Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
-rw-r--r--drivers/pci/controller/dwc/pcie-bt1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/controller/dwc/pcie-bt1.c b/drivers/pci/controller/dwc/pcie-bt1.c
index 6ef71c1b08cd..ce16a4c2cc98 100644
--- a/drivers/pci/controller/dwc/pcie-bt1.c
+++ b/drivers/pci/controller/dwc/pcie-bt1.c
@@ -377,9 +377,9 @@ static void bt1_pcie_full_stop_bus(struct bt1_pcie *btpci, bool init)
struct dw_pcie *pci = &btpci->dw;
int ret;
- /* Disable LTSSM for sure */
+ /* Make sure LTSSM and DBI CS2 are disabled by default */
regmap_update_bits(btpci->sys_regs, BT1_CCU_PCIE_GENC,
- BT1_CCU_PCIE_LTSSM_EN, 0);
+ BT1_CCU_PCIE_DBI2_MODE | BT1_CCU_PCIE_LTSSM_EN, 0);
/*
* Application reset controls are trigger-based so assert the core