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

Commit cb3ee0e1 authored by Banajit Goswami's avatar Banajit Goswami
Browse files

dsp: adsp-loader: avoid updating APR state after ADSP loading



APR state update should happen only after ADSP up
notification recieved by APSS, and not just after
ADSP is loaded and booted up.
Avoid setting APR state to loaded after PIL loading
of ADSP image is complete.

Change-Id: I9b9f073279c306562e427ec2c7e73dfa7d71f956
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
parent 5f0b5040
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
/*
 * Copyright (c) 2012-2014, 2017, The Linux Foundation. All rights reserved.
 * Copyright (c) 2012-2014, 2017-2018, 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
@@ -134,9 +134,6 @@ static void adsp_load_fw(struct work_struct *adsp_ldr_work)
					__func__);
				goto fail;
			}

			/* Set the state of the ADSP in APR driver */
			apr_set_q6_state(APR_SUBSYS_LOADED);
		} else if (adsp_state == APR_SUBSYS_LOADED) {
			dev_dbg(&pdev->dev,
			"%s: ADSP state = %x\n", __func__, adsp_state);