After firmware crashes, driver will try to recover the device by
resetting hardware and reloading firmware. Add a debug quirk option
to skip the recovery so that WLAN device can still remain the status
after crash for live debugging.
Change-Id: Ifff26df9ae5ab4c25573ca84e29eed73a79c6525
Signed-off-by: Yue Ma <yuem@codeaurora.org>
LINK_DOWN_SELF_RECOVERY,
SKIP_DEVICE_BOOT,
USE_CORE_ONLY_FW,
+ SKIP_RECOVERY,
};
unsigned long quirks;
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))