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

Commit f50db36d authored by Yamit Mehta's avatar Yamit Mehta Committed by Gerrit - the friendly Code Review server
Browse files

msm: adsp-loader: Modify the adsp_state check to get subsystem



ADSP subsystem_get gets called based on the adsp state variable.
If the adsp state is down then subsystem_get gets called. In one
of the cases, adsp state is updated to system_up in the APR function,
upon subsystem notifier callback. As the adsp state got modified,
subsystem_get function does not get called from adsp loader.
Modifying the status check, such that subsystem_get gets called.

CRs-fixed: 1056157
Change-Id: Iad525d38afd6034d73d4c21f916a20343b24e39f
Signed-off-by: default avatarYamit Mehta <ymehta@codeaurora.org>
parent d12d3238
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
 * Copyright (c) 2012-2014,2016 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -88,7 +88,7 @@ static void adsp_loader_do(struct platform_device *pdev)
		/* adsp_state always returns "0". So load modem image based on
		apr_modem_state to prevent loading of image twice */
		adsp_state = apr_get_modem_state();
		if (adsp_state == APR_SUBSYS_DOWN) {
		if (adsp_state != APR_SUBSYS_LOADED) {
			priv = platform_get_drvdata(pdev);
			if (!priv) {
				dev_err(&pdev->dev,