Skip to content

Commit

Permalink
Bluetooth: hci_qca: Move boot delay to qca_send_power_pulse()
Browse files Browse the repository at this point in the history
After sending a power on pulse the driver has a delay of 100ms
to allow the host controller to boot. Move the delay into
qca_send_power_pulse(), since it is directly related with the
power-on pulse.

Signed-off-by: Matthias Kaehlcke <[email protected]>
Reviewed-by: Balakrishna Godavarthi <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
  • Loading branch information
Matthias Kaehlcke authored and holtmann committed Feb 27, 2019
1 parent 9836b80 commit ad571d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/bluetooth/hci_qca.c
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,9 @@ static int qca_send_power_pulse(struct hci_uart *hu, bool on)
usleep_range(100, 200);
hci_uart_set_flow_control(hu, false);

if (on)
msleep(100);

return 0;
}

Expand Down Expand Up @@ -1148,9 +1151,6 @@ static int qca_wcn3990_init(struct hci_uart *hu)
if (ret)
return ret;

/* Wait for 100 ms for SoC to boot */
msleep(100);

/* Now the device is in ready state to communicate with host.
* To sync host with device we need to reopen port.
* Without this, we will have RTS and CTS synchronization
Expand Down

0 comments on commit ad571d7

Please sign in to comment.