summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYe Li <[email protected]>2025-09-11 18:56:04 +0800
committerFabio Estevam <[email protected]>2025-09-20 17:46:15 -0300
commit00ef795981d0c2df52e7fdd91d57a924b941dbfb (patch)
treef8d8f4a3a9e304074af8d15f3c3ecbc75b805f9f /drivers
parentb717a4090fb0fda4814bbc9d9a91396710294cfb (diff)
pci: dw: Fix wrong register used for PCI_COMMAND
Wirting to command register should use PCI_COMMAND not PCI_PRIMARY_BUS Signed-off-by: Ye Li <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/pcie_dw_common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/pcie_dw_common.c b/drivers/pci/pcie_dw_common.c
index c4cad019373..4113a9f03cf 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);