Skip to content

Commit ad571d7

Browse files
Matthias Kaehlckeholtmann
authored andcommitted
Bluetooth: hci_qca: Move boot delay to qca_send_power_pulse()
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 <mka@chromium.org> Reviewed-by: Balakrishna Godavarthi <bgodavar@codeaurora.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
1 parent 9836b80 commit ad571d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/bluetooth/hci_qca.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,9 @@ static int qca_send_power_pulse(struct hci_uart *hu, bool on)
10361036
usleep_range(100, 200);
10371037
hci_uart_set_flow_control(hu, false);
10381038

1039+
if (on)
1040+
msleep(100);
1041+
10391042
return 0;
10401043
}
10411044

@@ -1148,9 +1151,6 @@ static int qca_wcn3990_init(struct hci_uart *hu)
11481151
if (ret)
11491152
return ret;
11501153

1151-
/* Wait for 100 ms for SoC to boot */
1152-
msleep(100);
1153-
11541154
/* Now the device is in ready state to communicate with host.
11551155
* To sync host with device we need to reopen port.
11561156
* Without this, we will have RTS and CTS synchronization

0 commit comments

Comments
 (0)