Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a835fec6 authored by Yue Ma's avatar Yue Ma Committed by Nirav Shah
Browse files

cnss2: Only assert for remap window register when link is not down



Check PCIe link status before asserting because of PCIe remap window
register config failure.

Change-Id: Id4c92148cee735d87e329e910ca9e2b91fcdf49d
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 6c4f3836
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -443,6 +443,7 @@ static void cnss_pci_select_window(struct cnss_pci_data *pci_priv, u32 offset)
	if (val != window_enable) {
		cnss_pr_err("Failed to config window register to 0x%x, current value: 0x%x\n",
			    window_enable, val);
		if (!cnss_pci_check_link_status(pci_priv))
			CNSS_ASSERT(0);
	}
}