]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
pci: dw: Fix wrong register used for PCI_COMMAND
authorYe Li <ye.li@nxp.com>
Thu, 11 Sep 2025 10:56:04 +0000 (18:56 +0800)
committerFabio Estevam <festevam@gmail.com>
Sat, 20 Sep 2025 20:46:15 +0000 (17:46 -0300)
Wirting to command register should use PCI_COMMAND not PCI_PRIMARY_BUS

Signed-off-by: Ye Li <ye.li@nxp.com>
drivers/pci/pcie_dw_common.c

index c4cad019373e00f7041c540824083eb61eb1892b..4113a9f03cfc21795c1aaa51a71350205ce30bf3 100644 (file)
@@ -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);