From: Balakrishna Godavarthi Date: Mon, 1 Apr 2019 09:49:08 +0000 (+0530) Subject: Bluetooth: hci_qca: Give enough time to ROME controller to bootup. X-Git-Tag: v5.2-rc1~133^2~105^2~4 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7f09d5a6c33be66a5ca19bf9dd1c2d90c5dfcf0d;p=users%2Fjedix%2Flinux-maple.git Bluetooth: hci_qca: Give enough time to ROME controller to bootup. 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 Reviewed-by: Rocky Liao Tested-by: Rocky Liao Tested-by: Claire Chang Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 4ea995d610d2..a80c3bc90904 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -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;