Explorar o código

cnss2: Genoa window enable bit set wrong

Genoa window enable bit should be set before function writel_relaxed.

Change-Id: I7592e3975fad76c5232377cc51a9c4906a90aab6
CRs-Fixed: 3646876
Yu Ouyang hai 1 ano
pai
achega
34e74266d2
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      cnss2/pci.c

+ 3 - 3
cnss2/pci.c

@@ -996,6 +996,9 @@ static void cnss_pci_select_window(struct cnss_pci_data *pci_priv, u32 offset)
 	u32 window_enable = WINDOW_ENABLE_BIT | window;
 	u32 val;
 
+	if (plat_priv->device_id == QCN7605_DEVICE_ID)
+		window_enable = QCN7605_WINDOW_ENABLE_BIT | window;
+
 	if (plat_priv->device_id == PEACH_DEVICE_ID) {
 		writel_relaxed(window_enable, pci_priv->bar +
 			       PEACH_PCIE_REMAP_BAR_CTRL_OFFSET);
@@ -1004,9 +1007,6 @@ static void cnss_pci_select_window(struct cnss_pci_data *pci_priv, u32 offset)
 			       QCA6390_PCIE_REMAP_BAR_CTRL_OFFSET);
 	}
 
-	if (plat_priv->device_id == QCN7605_DEVICE_ID)
-		window_enable = QCN7605_WINDOW_ENABLE_BIT | window;
-
 	if (window != pci_priv->remap_window) {
 		pci_priv->remap_window = window;
 		cnss_pr_dbg("Config PCIe remap window register to 0x%x\n",