Skip to content

Commit

Permalink
Bluetooth: hci_qca: Give enough time to ROME controller to bootup.
Browse files Browse the repository at this point in the history
This patch enables enough time to ROME controller to bootup
after we bring the enable pin out of reset.

Fixes: 05ba533 ("Bluetooth: hci_qca: Add serdev support").
Signed-off-by: Balakrishna Godavarthi <[email protected]>
Reviewed-by: Rocky Liao <[email protected]>
Tested-by: Rocky Liao <[email protected]>
Tested-by: Claire Chang <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
  • Loading branch information
bgodavar authored and holtmann committed Apr 23, 2019
1 parent 62611ab commit 7f09d5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/bluetooth/hci_qca.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,8 @@ static int qca_open(struct hci_uart *hu)
qcadev = serdev_device_get_drvdata(hu->serdev);
if (qcadev->btsoc_type != QCA_WCN3990) {
gpiod_set_value_cansleep(qcadev->bt_en, 1);
/* Controller needs time to bootup. */
msleep(150);
} else {
hu->init_speed = qcadev->init_speed;
hu->oper_speed = qcadev->oper_speed;
Expand Down

0 comments on commit 7f09d5a

Please sign in to comment.