Merge "cnss2: Add a debug option to skip any kind of recovery"
This commit is contained in:
commit
9a65cf65cd
1 changed files with 6 additions and 0 deletions
|
@ -59,6 +59,7 @@ enum cnss_debug_quirks {
|
|||
LINK_DOWN_SELF_RECOVERY,
|
||||
SKIP_DEVICE_BOOT,
|
||||
USE_CORE_ONLY_FW,
|
||||
SKIP_RECOVERY,
|
||||
};
|
||||
|
||||
unsigned long quirks;
|
||||
|
@ -1454,6 +1455,11 @@ static int cnss_do_recovery(struct cnss_plat_data *plat_priv,
|
|||
plat_priv->driver_ops->update_status(pci_priv->pci_dev,
|
||||
CNSS_RECOVERY);
|
||||
|
||||
if (test_bit(SKIP_RECOVERY, &quirks)) {
|
||||
cnss_pr_dbg("Skip device recovery\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
switch (reason) {
|
||||
case CNSS_REASON_LINK_DOWN:
|
||||
if (test_bit(LINK_DOWN_SELF_RECOVERY, &quirks))
|
||||
|
|
Loading…
Add table
Reference in a new issue