Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4324728imb; Wed, 6 Mar 2019 10:32:47 -0800 (PST) X-Google-Smtp-Source: APXvYqwjroHZHWDSwycSmxATXKFXZ+rPkH86+TYBhr1HrSA4FT6+5oOX84XMoxR00xaA/ZxHix6y X-Received: by 2002:a63:5b43:: with SMTP id l3mr7457025pgm.298.1551897167590; Wed, 06 Mar 2019 10:32:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551897167; cv=none; d=google.com; s=arc-20160816; b=WlL0vbLfGqnY0hFa0zTnqgaABeXJtVmRU4QfESV5XIkZd+X89cA8hapLZWNpUQP83c JrCD5tbKY9uIxdjdodeToXU0j3LWtzbtqHzMWcMHjCadacGVFbYnMpcp7KWJymwSHDw/ SY90vI3j4Gf0uiogdl0NmGw6bCz+HhiG5IJpGvQsLd82SW9/wjh4SWwut+875McSSVnD 6qHeeIj+5DEKHeA726fynng1VCTMRU0ayWU+nNJGrwwMx1tAsUItgsuAhWwryULqIBUr k0e05eZksZtl1UPfknzEjdiurSR1AB/m36Ihdo8sk/7IjBRvmWVPEhyjDY1M4O5LlAqH /rIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dmarc-filter:dkim-signature :dkim-signature; bh=AM19Rmxk4S4hHv13udg0AjKcYcl2d1ZIJj2Ia/exDHw=; b=g4My8+KOi01ddSozXCLgXV+9UYV+eGW/7bfhKAooymSmJVqeDs5dA0gOR42tDn1OWf SDoVHmsfKk1Xn1mdDTy56WDpXTafOMdU7frTCmeWCL0ea8pxuRY5L82/QUt0YcQBFJvG On5WB2gno5TElnKLY5kPF4GYC92qV9QflZGpdlktRZZOZJ0kwdpCdmfJxmkJ5sEsAf2q KFkgqN7s71bK2Ke488UMG6mQT/W4plYh4kCJLoFtfgRCEI5s9z9y6hwciDZv1gGuVgsy Zc68l968/FjvRbJCfiMK0RRlH7TelG5zHsGJsy2vquhDxkrvxGPIqNbvCa11PcCHYdOY 9NUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=e7Z80az3; dkim=pass header.i=@codeaurora.org header.s=default header.b=Ao8LyDPT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s198si1857946pgs.582.2019.03.06.10.32.32; Wed, 06 Mar 2019 10:32:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=e7Z80az3; dkim=pass header.i=@codeaurora.org header.s=default header.b=Ao8LyDPT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728294AbfCFQV1 (ORCPT + 99 others); Wed, 6 Mar 2019 11:21:27 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:50126 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726912AbfCFQV1 (ORCPT ); Wed, 6 Mar 2019 11:21:27 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 397D76118D; Wed, 6 Mar 2019 16:21:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1551889286; bh=Ep3Q5zPZhCzIJLT4Gg/hqPo6crzurFgXTohdFArXVV4=; h=From:To:Cc:Subject:Date:From; b=e7Z80az3JxwO58ikGDQIvcUjO5pGTXMF0dFIYl2a0Yz8ftLvQ/l2ZVZZq3CyYqf86 d9BnPsnLMg5+ONj/2hcc83FRADkKJxi384EAvd+06kIX5F3F+6vWHePWoD3iqsHrF8 Lc2+uuLo79qKrXG7qju1ipa5gM84Niiu8hchrG8s= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from bgodavar-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: bgodavar@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 724636115B; Wed, 6 Mar 2019 16:21:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1551889283; bh=Ep3Q5zPZhCzIJLT4Gg/hqPo6crzurFgXTohdFArXVV4=; h=From:To:Cc:Subject:Date:From; b=Ao8LyDPTEC/e5a5zdc+4sWuv+m9WXLMrXofjFIFNbMJ0ZNEYHFB21ox1tz2V9zEia ITxYZ0FhmxdfvOvsm/jhNx/srpfLTdtWGaJVDvU1zeZ7e80hcLrK3tOtOHnFT/GA0p dcpB2trU8YlJO8I/V42ijHNfKak/o7imWY0FWIiA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 724636115B Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=bgodavar@codeaurora.org From: Balakrishna Godavarthi To: marcel@holtmann.org, johan.hedberg@gmail.com Cc: mka@chromium.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, hemantg@codeaurora.org, linux-arm-msm@vger.kernel.org, rjliao@codeaurora.org, Balakrishna Godavarthi Subject: [PATCH v1] Bluetooth: hci_qca: Give enough time to ROME controller to bootup. Date: Wed, 6 Mar 2019 21:51:13 +0530 Message-Id: <20190306162113.8585-1-bgodavar@codeaurora.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch enables enough time to ROME controller to bootup after we bring the enable ping out of reset. Signed-off-by: Balakrishna Godavarthi --- 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 237aea34b69f..1953b13511e7 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; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project