mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
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: Yue Ma <yuem@codeaurora.org>
This commit is contained in:
parent
3db21c0a2e
commit
f5dd3652f9
1 changed files with 2 additions and 1 deletions
|
|
@ -410,7 +410,8 @@ 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);
|
||||
CNSS_ASSERT(0);
|
||||
if (!cnss_pci_check_link_status(pci_priv))
|
||||
CNSS_ASSERT(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue