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: Banajit Goswami <bgoswami@codeaurora.org>
This commit is contained in:
Banajit Goswami 2018-03-30 13:17:39 -07:00
parent 5f0b5040eb
commit cb3ee0e10b

View file

@ -1,5 +1,5 @@
/*
* 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);