Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5616223imb; Thu, 7 Mar 2019 21:16:07 -0800 (PST) X-Google-Smtp-Source: APXvYqz/v1rV71arb8CUbSZEraZDD5uWLAUSMSSNkk8DjeXoaN5peJo2F5MAEYphegR6cN3exW9c X-Received: by 2002:a63:4913:: with SMTP id w19mr14744659pga.394.1552022167742; Thu, 07 Mar 2019 21:16:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552022167; cv=none; d=google.com; s=arc-20160816; b=TvIsxnTuUiqvQcL22OjTRhUtiqMusjGlvQSGu8oWVFU85aGTeaYEkoo0lLjd7zIpiV 18wbYVCOIfoRo4OBLmP/PiXVq75ZZW5IQDtcvJWGNBM8otChmStOjgIFCZEZ78HXyyWn /YuOVXWpUuYjE4af+O+hVTPiI8yhEumRmqctIr9zUkAJBYnZ/QzMBypNl7eU2KBXb5wg LlhYVSd6UI0tccxIkjqo4JFPggTITCW0znC18KH6LsH5++VAmJYEXX/PJYNcefvZLoPv q35uK6aPI4a2nFBl1elCxAWBB9xR+ag3rh0AKtBw/EXJsTEG+Chi8jQqRdNqlRtrobrY fcCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature; bh=436TRtx2r30ZAyX+kkyZOeVuy+oz02tN4KFZsuCpfdo=; b=clUCGFgceRdol0o1TkPA6fX7vHVcd/HrBP2VQcZItvmMa7pYTctTmCjEBSBsiw9O3F G4Hnrouimodt3EsG1qd/zaSJzwgJoYS1TMaW64kzoQb0BCgIB/bVPV7Ba7GB+theivNw ctDnCLA1sVquTLr7blxASgU1+EwqryInyZ6GCTUpVl4CjFZ/41K/aSVHiLfwvIhZmENK mzsYAsIxFz7hQMiY6B9KDnTPLJZePC/sOgbQpDMT1JtAluWRMiqQxdUfjg2JQs9hwQBj zRB7y3VYJCvtdn/p3uMbHPXfnsUHLdGXyRoBrioawMFQjMU58J1pKVLH+tVI3DJRqX8O yLuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=gunF4Opm; dkim=pass header.i=@codeaurora.org header.s=default header.b=W7CKDR0M; 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 a22si6018659pfn.155.2019.03.07.21.15.52; Thu, 07 Mar 2019 21:16:07 -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=gunF4Opm; dkim=pass header.i=@codeaurora.org header.s=default header.b=W7CKDR0M; 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 S1726302AbfCHFPd (ORCPT + 99 others); Fri, 8 Mar 2019 00:15:33 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:46684 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725766AbfCHFPc (ORCPT ); Fri, 8 Mar 2019 00:15:32 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0DDAA6034E; Fri, 8 Mar 2019 05:15:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1552022132; bh=h/0tuvw7uWCwhB6ncK4IjAlUStmNtP9V3x9UHw/jDDk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gunF4OpmnEZPBdr5lug9sLfwJn/mcFMqmuqcTGOan1JafMr/niW6B4YVQcYzmu99E qZJTKrWoIgBbNTSdEl+m/8gnUEajDwO0Z9W5v9MtL1tQkLgqIlgXoxNQVsA7N95/HH OgrlkVefRFM5BIDjDKfRgD16Lw2qIx8COjNDhPF8= 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 mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 72C046034E; Fri, 8 Mar 2019 05:15:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1552022131; bh=h/0tuvw7uWCwhB6ncK4IjAlUStmNtP9V3x9UHw/jDDk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=W7CKDR0MpFO+HFvi5OvUxHU+ksuTOWxuWRFqs6q2aCufgRZKnvUKBnA/yPz3BhMTg +sRE4wDmJ55nwNjIekljxiw9/vQ5veEmqDJqp2vG0oodKTzgM0EqanpjIiP0H/DF+p Dwxwjk5RGSokZTZABQtfOJ9MtGOZdA4wR25r6Gig= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Fri, 08 Mar 2019 13:15:31 +0800 From: rjliao@codeaurora.org To: Balakrishna Godavarthi Cc: marcel@holtmann.org, johan.hedberg@gmail.com, mka@chromium.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, hemantg@codeaurora.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v1] Bluetooth: hci_qca: Give enough time to ROME controller to bootup. In-Reply-To: <20190306162113.8585-1-bgodavar@codeaurora.org> References: <20190306162113.8585-1-bgodavar@codeaurora.org> Message-ID: <802c0b3fedc631aabd47d7c63cfdfc85@codeaurora.org> X-Sender: rjliao@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2019-03-07 00:21,Balakrishna Godavarthi 写道: > 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; Reviewed-by: Rocky Liao Tested-by: Rocky Liao