Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp525630img; Tue, 26 Feb 2019 04:20:41 -0800 (PST) X-Google-Smtp-Source: AHgI3IaXgTUAVzUC9SV11vPaUJQunsRCRB83jqOTEXs3dnf/b3kxr1yPMTJ6cN1jFjrgRO3jyW+H X-Received: by 2002:a63:8b43:: with SMTP id j64mr23933710pge.332.1551183641115; Tue, 26 Feb 2019 04:20:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551183641; cv=none; d=google.com; s=arc-20160816; b=SAf/S8yFFYG/ntkBQ32BLSRaVySzD0qMFUfBnrhma/h5hHH8bbaLQU1R3xhGUiIGDU NPHmf3zubfDDGcb3ZN1Hv6W5OiaMVJm6pz4Yd8/ErzOO1D8XGIt934ix2n+Z4hcCbHnk sQImVz3hHac9ZqOQ5J9OYgLbHOgbKUdai5HGai8EKG9E14uBh2pacu+uZmP9ww9BOLK2 vASAIYYT6NCU+++W0tv37dCyNl4ZPY9knZ3PvQWr2A++kwR3pPAlbQeoDqRDfMd8o+2p uiNh4cNVkxUikN5EXhmlquC+QTkx9xjJl3kthnpyJbVQ1zNlcRtgrxOJan8ERcs4Cffo 3i/Q== 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=Byr/lzXCwtz1JAG4KYE68B3U/1byEtYqUDVzD4kpEVk=; b=UhRqhXRM9Ywd43DZ2G+4t4WdzywR+78OlX5RK5pESV6W5U4+4+/TD8zisJhfzFyMlX 6/apslPR/2jtNXmD2t/54YvG/smeCPtyv02xzc8+QZKV9oEVqpOhv5W7lOVMBF0KE6+C oWF5lGsO1iqVQD/4HN9d/OkPwGzwsXN4FqRMeNg/e/Y6nhKOnxXnHXMUdJNJI/B4LDXL CdGBnXHSt5UNUmor682QFYCzy2+Dtx9STKUw3DrKPZc24QxUr+ZG4sb40o0sZIANcf+H CwURv0m8wCjXwFyaWrDr/B+/czs9VT8EZpFC+oXE4/Ghe0Mo+Z6TJeLQ2EU5XWrPGKtv BrLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=kXS0umWZ; dkim=pass header.i=@codeaurora.org header.s=default header.b=mM9Hf6re; 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 71si12678511plb.8.2019.02.26.04.20.26; Tue, 26 Feb 2019 04:20:41 -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=kXS0umWZ; dkim=pass header.i=@codeaurora.org header.s=default header.b=mM9Hf6re; 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 S1726746AbfBZMUA (ORCPT + 99 others); Tue, 26 Feb 2019 07:20:00 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:40230 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726397AbfBZMUA (ORCPT ); Tue, 26 Feb 2019 07:20:00 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id C4BE861B1C; Tue, 26 Feb 2019 12:19:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1551183599; bh=0L2j6zvdXjrzqy9ZbBbURNM2rRLW6TAhwUkUjVDmT5o=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=kXS0umWZm0Dgz7coqNLiqq/8b3oVQJhPGMEqMTqu9NedtqAxeY89+i9ibXQnr3/Yd 0fedy9e3IfmKqxVw7vK6mz3LiehO19Pe95EMCbgmgaC5kCj2z7BgWRXAm+zv4EKyFJ dv/trn4ahnaD1gtwo0uXWTHvg9zJBEcwhUQY5hsc= 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 DC9F66119D; Tue, 26 Feb 2019 12:19:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1551183597; bh=0L2j6zvdXjrzqy9ZbBbURNM2rRLW6TAhwUkUjVDmT5o=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mM9Hf6re2fDRCczI4leov411RJUCjpTHp0tS6oUpqjJ1URjH4IAfBlIgYaP0J5T9E vbVbtRFTFwRYDkOdAysgAomYABo1FI/pglW4W5ysvZQzYnPY7k/UwDOXLr8bfvu9+1 ngvHIY31ThlyrREQ7kVO4G2NwYdAoIfodmBGs8vM= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 26 Feb 2019 17:49:56 +0530 From: Balakrishna Godavarthi To: Matthias Kaehlcke Cc: Marcel Holtmann , Johan Hedberg , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Hemantg Subject: Re: [PATCH 3/3] Bluetooth: hci_qca: Add delay after power-off pulse In-Reply-To: <20190225234954.82942-4-mka@chromium.org> References: <20190225234954.82942-1-mka@chromium.org> <20190225234954.82942-4-mka@chromium.org> Message-ID: <558de0e85225baf7d9ab402cfbaab9c7@codeaurora.org> X-Sender: bgodavar@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 On 2019-02-26 05:19, Matthias Kaehlcke wrote: > During initialization the power-on pulse is currently sent inmediately > after the prior power-off pulse. With this initialization often fails > at boot time: > > [ 15.205224] Bluetooth: hci0: setting up wcn3990 > [ 17.341062] Bluetooth: hci0: command 0xfc00 tx timeout > [ 22.101453] ERROR: Bluetooth initialization failed > [ 25.337740] Bluetooth: hci0: Reading QCA version information failed > (-110) > > After a power-off pulse wait 10ms to give the controller time to power > off. > > Signed-off-by: Matthias Kaehlcke > --- > drivers/bluetooth/hci_qca.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c > index eacc108c422d0..c89c1ed87ffe9 100644 > --- a/drivers/bluetooth/hci_qca.c > +++ b/drivers/bluetooth/hci_qca.c > @@ -1036,8 +1036,11 @@ static int qca_send_power_pulse(struct hci_uart > *hu, bool on) > usleep_range(100, 200); > hci_uart_set_flow_control(hu, false); > > + /* Give to controller time to boot/shutdown */ > if (on) > msleep(100); > + else > + msleep(10); > > return 0; > } Reviewed-by: Balakrishna Godavarthi -- Regards Balakrishna.