Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp109913yba; Mon, 1 Apr 2019 02:50:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyj/azwdEMKKZOzCfaRaJns34nhyGmBRwue85qag3ZwjGp1FPfgVJxLSeObU1jooUNBw2IY X-Received: by 2002:aa7:90c7:: with SMTP id k7mr60918388pfk.186.1554112222166; Mon, 01 Apr 2019 02:50:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554112222; cv=none; d=google.com; s=arc-20160816; b=A3M2zJCNUr4wWt0ZWP/autgiwfZJfF1iryUWA1qIGfgcFTCprECZTN6tRdYVugszTk CXBeKmBe+xs67HMKQag+U73aZnOYXZi19KSfdhGxpvPzsArCucwoZb2R2ec2qh+Mu77i TfAJ7GnmqM7hwuTOpG8MlodqJhTmd2dvz4Pr2cOF2DqqUIFz4TO5mtyQ+wVDvqmBGLd5 Hm1OAHI39ix9eDDf06rMqq0bftMEbS533/s8GJk2o0NfmdloaSeJ93onXNB3s2YPUf3Y POQRgXJdcNuTYbgBNj6z6J+nefxAlL0QWtTkjdYGyX0/MhnsiZ66TmbEU4GjGiga17Cf J0IQ== 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=359CDq1a8S9NbYFGjXmalgmuOGJ545Ir8kF+kcEbhgs=; b=CwpGgptCND9ivW6AlLQBuipIWJHeWdLhYO6i9XnGd9YFaMCxhv29xOkdmBMNDOqMyi Mop45/QM8u8iW2hII0CQy7FUkXhMhIdcI1/iwIqysQANkIbukr6t/uCeF1Qqx7LJ5bYi 61VvKafVx7F4BYL/5WycZrfqd3ZCthpj08icpvzoE2Xb5bc8R21jZxlpI5tmqlMP9Nvz nlOi9hwYmspdptQKoVAbQO9yj97u2i9H/R4F2sYnxlf764g5pd+kOY3j4WJU2toRp6+J DOD3YrggMoq7c/Ntt+ptcnOqDr2vZF5Alh/L3d59IcOa+CdspPQuc0V+8mgbzY7XlSYc mOww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=cCke353T; dkim=pass header.i=@codeaurora.org header.s=default header.b=lqFL9USf; 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 n11si8182835pgv.491.2019.04.01.02.50.06; Mon, 01 Apr 2019 02:50:22 -0700 (PDT) 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=cCke353T; dkim=pass header.i=@codeaurora.org header.s=default header.b=lqFL9USf; 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 S1726274AbfDAJtZ (ORCPT + 99 others); Mon, 1 Apr 2019 05:49:25 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:36176 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725820AbfDAJtZ (ORCPT ); Mon, 1 Apr 2019 05:49:25 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6A2B161B99; Mon, 1 Apr 2019 09:49:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554112164; bh=VG3TqCxnl22+Ls83Eg0BsM79wjR3v/RdDX0Zthgp6pQ=; h=From:To:Cc:Subject:Date:From; b=cCke353Trlq+wRsFl7mgkDdb97SZFfNz31kV3velgd5onDKm37afgO4aij0H7NMAh MY24CdGVGs8onscetkwGdCVgIVqgicwvNnNkZ1NkpP3XijT9l54BgvO6adEGRDCKSH sip5lXurqTUkaA8swSbwAECFozNuj5xGQKk0L40o= 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 E6E4A61B89; Mon, 1 Apr 2019 09:49:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554112162; bh=VG3TqCxnl22+Ls83Eg0BsM79wjR3v/RdDX0Zthgp6pQ=; h=From:To:Cc:Subject:Date:From; b=lqFL9USfwO3J62/FlGCjo8qtQ9Sr8xFfcXNEgATbkokbtq+pXDBtrxnkKBfkRHsSd lTF5yAiAI93+eYyjll7CC4nUY+hQyGQiDJhC3L00OZP5lCAerbWolgmmrUPFtuZ6Mi LfwHKSpWTgYEcCA4QzknVggfQMfOuyxzJylci0H8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E6E4A61B89 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, Balakrishna Godavarthi , Rocky Liao , Claire Chang Subject: [PATCH v2] Bluetooth: hci_qca: Give enough time to ROME controller to bootup. Date: Mon, 1 Apr 2019 15:19:08 +0530 Message-Id: <20190401094908.11460-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 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 --- Changes in v2: * added fixes tag in the commit text. --- 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 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; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project