[PATCH 1/8] pci: dw: Fix wrong register used for PCI_COMMAND

Ye Li ye.li at nxp.com
Thu Sep 11 11:58:34 CEST 2025


Wirting to command register should use PCI_COMMAND not PCI_PRIMARY_BUS

Signed-off-by: Ye Li <ye.li at nxp.com>
---
 drivers/pci/pcie_dw_common.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/pci/pcie_dw_common.c b/drivers/pci/pcie_dw_common.c
index c4cad019373e..4113a9f03cfc 100644
--- a/drivers/pci/pcie_dw_common.c
+++ b/drivers/pci/pcie_dw_common.c
@@ -7,7 +7,6 @@
  *
  * Copyright (C) 2018 Texas Instruments, Inc
  */
-
 #include <dm.h>
 #include <log.h>
 #include <pci.h>
@@ -385,7 +384,7 @@ void pcie_dw_setup_host(struct pcie_dw *pci)
 			0xffffff, 0x00ff0100);
 
 	/* setup command register */
-	clrsetbits_le32(pci->dbi_base + PCI_PRIMARY_BUS,
+	clrsetbits_le32(pci->dbi_base + PCI_COMMAND,
 			0xffff,
 			PCI_COMMAND_IO | PCI_COMMAND_MEMORY |
 			PCI_COMMAND_MASTER | PCI_COMMAND_SERR);
-- 
2.7.4



More information about the U-Boot mailing list