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

Commit 196f8d09 authored by Hardik Kantilal Patel's avatar Hardik Kantilal Patel
Browse files

wcnss: Turn off wcnss voltage regulator on error ready timeout



Before doing PIL retry turn off wcnss voltage regulator to avoid
kernel warning error

Change-Id: Ic2ac15ddb01d4d58f152217a30810cccc9830385
CRs-fixed: 647248
Signed-off-by: default avatarHardik Kantilal Patel <hkpatel@codeaurora.org>
parent bb27c068
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -2691,9 +2691,12 @@ static int wcnss_notif_cb(struct notifier_block *this, unsigned long code,
	} else if ((code == SUBSYS_BEFORE_SHUTDOWN && data && data->crashed) ||
						code == SUBSYS_SOC_RESET)
		wcnss_log_debug_regs_on_bite();
	else if (code == SUBSYS_POWERUP_FAILURE)
	else if (code == SUBSYS_POWERUP_FAILURE) {
		if (pdev && pwlanconfig)
			wcnss_wlan_power(&pdev->dev, pwlanconfig,
					WCNSS_WLAN_SWITCH_OFF, NULL);
		wcnss_pronto_log_debug_regs();
	else if (SUBSYS_BEFORE_SHUTDOWN == code)
	} else if (SUBSYS_BEFORE_SHUTDOWN == code)
		penv->is_shutdown = 1;
	else if (SUBSYS_AFTER_POWERUP == code)
		penv->is_shutdown = 0;