Bluetooth: hci_qca: Give enough time to ROME controller to bootup.
authorBalakrishna Godavarthi <bgodavar@codeaurora.org>
Mon, 1 Apr 2019 09:49:08 +0000 (15:19 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 23 Apr 2019 17:29:43 +0000 (19:29 +0200)
This patch enables enough time to ROME controller to bootup
after we bring the enable pin out of reset.

Fixes: 05ba533c5c11 ("Bluetooth: hci_qca: Add serdev support").
Signed-off-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
Reviewed-by: Rocky Liao <rjliao@codeaurora.org>
Tested-by: Rocky Liao <rjliao@codeaurora.org>
Tested-by: Claire Chang <tientzu@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_qca.c

index 4ea995d610d25776410952c26bd936612e6d72f7..a80c3bc909042798e497f31b3f20ce19682aa035 100644 (file)
@@ -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;