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

Commit 10fe7715 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cnss: notify wlan driver when failed to power up"

parents 3e781d62 e1d64b86
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -2717,11 +2717,15 @@ static int cnss_powerup(const struct subsys_desc *subsys)
	cnss_configure_wlan_en_gpio(WLAN_EN_LOW);
	cnss_wlan_vreg_set(vreg_info, VREG_OFF);
	if (penv->pdev) {
		if (wdrv && wdrv->update_status)
			wdrv->update_status(penv->pdev, CNSS_SSR_FAIL);
		if (!penv->recovery_in_progress) {
			pr_err("%d: Unregistering pci device\n", __LINE__);
			pci_unregister_driver(&cnss_wlan_pci_driver);
			penv->pdev = NULL;
			penv->pci_register_again = true;
		}
	}

err_wlan_vreg_on:
	return ret;
+5 −2
Original line number Diff line number Diff line
@@ -102,11 +102,14 @@ struct cnss_platform_cap {
	u32 cap_flag;
};

/* WLAN driver status */
/* WLAN driver status, keep it aligned with cnss2 */
enum cnss_driver_status {
	CNSS_UNINITIALIZED,
	CNSS_INITIALIZED,
	CNSS_LOAD_UNLOAD
	CNSS_LOAD_UNLOAD,
	CNSS_RECOVERY,
	CNSS_FW_DOWN,
	CNSS_SSR_FAIL,
};

enum cnss_runtime_request {