wcnss: Enable smd channel ready

Enable smd channel ready after getting nv binary
download response.

Change-Id: Ie36b8d1c0273c832892b338ac81cf9738fe6f9f4
Signed-off-by: Dundi Raviteja <dundi@codeaurora.org>
This commit is contained in:
Dundi Raviteja 2020-07-22 19:56:56 +05:30
parent e7fd524261
commit 455f200912

View File

@ -1573,6 +1573,7 @@ static int wcnss_ctrl_probe(struct rpmsg_device *rpdev)
static void wcnss_ctrl_remove(struct rpmsg_device *rpdev)
{
penv->smd_channel_ready = 0;
of_platform_depopulate(&rpdev->dev);
}
@ -2378,6 +2379,8 @@ static void wcnss_process_smd_msg(void *buf, int len)
if (nvresp->status != WAIT_FOR_CBC_IND)
penv->is_cbc_done = 1;
penv->smd_channel_ready = 1;
if (penv->ops)
penv->ops->driver_state(penv->ops->priv_data,
WCNSS_SMD_OPEN);