| From 785345451cf9f8364cbbecc531626ab3d0754b67 Mon Sep 17 00:00:00 2001 |
| From: Balakrishna Godavarthi <bgodavar@codeaurora.org> |
| Date: Mon, 1 Apr 2019 15:19:08 +0530 |
| Subject: Bluetooth: hci_qca: Give enough time to ROME controller to bootup. |
| |
| [ Upstream commit 7f09d5a6c33be66a5ca19bf9dd1c2d90c5dfcf0d ] |
| |
| 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> |
| Signed-off-by: Sasha Levin <sashal@kernel.org> |
| --- |
| drivers/bluetooth/hci_qca.c | 2 ++ |
| 1 file changed, 2 insertions(+) |
| |
| diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c |
| index 340c3c750b180..d3b467792eb3d 100644 |
| --- a/drivers/bluetooth/hci_qca.c |
| +++ b/drivers/bluetooth/hci_qca.c |
| @@ -508,6 +508,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; |
| -- |
| 2.20.1 |
| |