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

Commit 7048cd5a authored by Venkateshwarlu Domakonda's avatar Venkateshwarlu Domakonda Committed by Gerrit - the friendly Code Review server
Browse files

radio: iris: Fix the issue with disable command



Disable command not able to send to the controller as the SMD
channel closing immediately after sending the cmd.
Add sleep after sending the disable cmd which can allow the cmd to
receive at controller and get the response back to host.

Change-Id: I7c30816dc0852b5c817142f733a4ae984881e752
CRs-Fixed: 903994
Signed-off-by: default avatarVenkateshwarlu Domakonda <vdomak@codeaurora.org>
parent c025b09c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -5150,10 +5150,14 @@ static int iris_fops_release(struct file *file)
		radio->mode = FM_OFF;
		retval = hci_cmd(HCI_FM_DISABLE_RECV_CMD,
						radio->fm_hdev);
		/* wait for disable cmd resp from controller */
		msleep(50);
	} else if (radio->mode == FM_TRANS) {
		radio->mode = FM_OFF;
		retval = hci_cmd(HCI_FM_DISABLE_TRANS_CMD,
					radio->fm_hdev);
		/* wait for disable cmd resp from controller */
		msleep(50);
	} else if (radio->mode == FM_CALIB) {
		radio->mode = FM_OFF;
		return retval;