Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31EA6C43381 for ; Tue, 26 Feb 2019 12:24:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F3AB82087C for ; Tue, 26 Feb 2019 12:24:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="k1GYaAIG"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="VjsGNdmm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726617AbfBZMYa (ORCPT ); Tue, 26 Feb 2019 07:24:30 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:48548 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726063AbfBZMYa (ORCPT ); Tue, 26 Feb 2019 07:24:30 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 71BCC61B80; Tue, 26 Feb 2019 12:24:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1551183869; bh=EofSkXdyY1237I9DjQUuA1klNbH3TKk8bG1yGaKb6Ok=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=k1GYaAIG1apnq1GbsrVJSzdo9HarNwnDDb3stNUMvD0YrOATWR5oLEqmP8TIRqlKU +K4WvCW1n5BXsgLTQel0IWbqZxL0is+rtRX7gcxFlz1DXbSdZsin/3r7QOFkaAEsH3 lfs1R/dTLEwhI5+0wsJUvctrKhEtjVECKuUrXBaU= Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 1A41261B6C; Tue, 26 Feb 2019 12:24:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1551183865; bh=EofSkXdyY1237I9DjQUuA1klNbH3TKk8bG1yGaKb6Ok=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VjsGNdmm7GE/cJLB9HBmz25QIBHu0HtPHvaESg5EnUgMMA0xgxlv0TF9u1XFkiqZH pNYsYHVN5Fc0dR3ATfGOepxyJ1qqQGBbQtFw7DZbDv42muNlniHEAHdcz/NeNSuun+ Gwdk8Mou0SxQMd05P8DOawWhGOQ1ZPsiN4e9agS0= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 26 Feb 2019 17:54:24 +0530 From: Balakrishna Godavarthi To: Matthias Kaehlcke Cc: Marcel Holtmann , Johan Hedberg , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, hemantg@codeaurora.org Subject: Re: [PATCH 2/3] Bluetooth: hci_qca: Move boot delay to qca_send_power_pulse() In-Reply-To: References: <20190225234954.82942-1-mka@chromium.org> <20190225234954.82942-3-mka@chromium.org> Message-ID: <0c928a085f4c237c3efe0ad9fda803d9@codeaurora.org> X-Sender: bgodavar@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org hi Matthias, On 2019-02-26 17:48, Balakrishna Godavarthi wrote: > On 2019-02-26 05:19, Matthias Kaehlcke wrote: >> After sending a power on pulse the driver has a delay of 100ms >> to allow the host controller to boot. Move the delay into >> qca_send_power_pulse(), since it is directly related with the >> power-on pulse. >> >> Signed-off-by: Matthias Kaehlcke >> --- >> drivers/bluetooth/hci_qca.c | 6 +++--- >> 1 file changed, 3 insertions(+), 3 deletions(-) >> >> diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c >> index e4128774e9686..eacc108c422d0 100644 >> --- a/drivers/bluetooth/hci_qca.c >> +++ b/drivers/bluetooth/hci_qca.c >> @@ -1036,6 +1036,9 @@ static int qca_send_power_pulse(struct hci_uart >> *hu, bool on) >> usleep_range(100, 200); [Bala] : i still doubt do we require this delay. >> hci_uart_set_flow_control(hu, false); >> >> + if (on) >> + msleep(100); >> + >> return 0; >> } >> >> @@ -1148,9 +1151,6 @@ static int qca_wcn3990_init(struct hci_uart *hu) >> if (ret) >> return ret; >> >> - /* Wait for 100 ms for SoC to boot */ >> - msleep(100); >> - >> /* Now the device is in ready state to communicate with host. >> * To sync host with device we need to reopen port. >> * Without this, we will have RTS and CTS synchronization > > Reviewed-by: Balakrishna Godavarthi -- Regards Balakrishna.