Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp962138img; Tue, 26 Feb 2019 11:34:43 -0800 (PST) X-Google-Smtp-Source: AHgI3IZN4Hfz1kdUnd5XRilqLC+IM21gyu755kzGGDwHxVBV0OX0WyDK/n7R54sYnNsHKTQRizmS X-Received: by 2002:a63:b447:: with SMTP id n7mr26036704pgu.401.1551209683851; Tue, 26 Feb 2019 11:34:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551209683; cv=none; d=google.com; s=arc-20160816; b=DbZ4LbE5rNTv/9lkA4CrCurJ5bQw9PUHOYrFQ4PQ8nI2ZWCP1EcFuep4UMlgCIZTuE hEVa2tC/U6ptye379yGYExmoqPGpHnCCTAhhMtzE7Bz7v/gMqOagBJ9bbsCcTtK9ox6g LMbEH6EJ9A7blpxBUtkzxSwV73m1RorLjhzJp4P1MB+5K/t5iiQfVjzvx4InISfOsdng smyIWT6Sh4+3GX5xbCwJCdG2zIQ9nGwkC/Qpnk5FU/gI7DotHxRVy8TcBmvCdDh2qJKA Q/xxEUr+WfUfEZsNlcG15mLBM796tufqdO8jqkN/yD4sMJFoBCGbNK2FlhAk4XOwc+Wf X8vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FOkMcF/KCR9TmeYJTCZ/0RpTzFWfB6fAq5K2h5yMqbs=; b=feHgTnjzC7yanaEneGNW+oOvpHT21ZVGvqn68fgftcf1QZDGoktiIvWD1DfyAAPY3X cgRU89wmFjxrq7bwAR2ihhttCa9GGv1jXNQA1dffKXN1l2gIjb6j756Zb40Rj8J6vTyc F3tcF2TJVg4OQEIyOs251+LjrcxNADSwu/TTL1F7ILgAX0lEl6oSuz3ltBv8gUex5rLR FzWhMa48mmBBmYyYvwOBskly3okCJjAf8p/xw6wcKkj4FQhQiCDRgyOVvPwiER3zMZZj i7Z74xV6K+0qclGue3R83k6sjKywnHfQLl3Pv4xnnROfKG/FF2DN0AMFh8ZIizM4t6LJ X8dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cOYwZyup; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y14si13319131pgl.274.2019.02.26.11.34.28; Tue, 26 Feb 2019 11:34:43 -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=@chromium.org header.s=google header.b=cOYwZyup; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728937AbfBZTbz (ORCPT + 99 others); Tue, 26 Feb 2019 14:31:55 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:42776 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728898AbfBZTby (ORCPT ); Tue, 26 Feb 2019 14:31:54 -0500 Received: by mail-pl1-f195.google.com with SMTP id v11so1287751plg.9 for ; Tue, 26 Feb 2019 11:31:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=FOkMcF/KCR9TmeYJTCZ/0RpTzFWfB6fAq5K2h5yMqbs=; b=cOYwZyupTirhDFFAkCvu6/uxuElh8519IGROS3I1jD+i5X6xBjNGtyraM+B0upsOpU HGukdh5a3LmUX+ihl+41kVtrvPcgNe+jtEQad+bZn4PALymI8hzkknyz+J6i/qJ/bWxE cnBgPunvziIK23sVKUSbECig+0OvUpMk+ol+Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=FOkMcF/KCR9TmeYJTCZ/0RpTzFWfB6fAq5K2h5yMqbs=; b=GnXpGKq9nGw4CsDGcFqwmWvgT2wCJyrZ2q0QPKGTIhSIcUIchzUGUv+41Mssxtscnp Wvd8lJNUlKTT8TcggPsG7LqwHHQJOHZOwR6/iJp7NHCjGHRNClfnA0+I3yRV9HoHVMec FhHkltC1QGs5TBYkVyDfTDxmWiw+elNIFIQJMvSbEDowOr7JQhdritCLSMgP79LDsT7X /PKMkZR4NDGMIcLLgNGULiSlJliWBPrSXWUT4HYjUru7onNS8Oe0SlGsC+1CBWjE/06i NgiYzU/0xqRE+ueC1m0+j45OVnk0Y5hYmUCI2/W35/pezrsm/4Z3vwwNKpJqpIxJgg63 Jxpg== X-Gm-Message-State: AHQUAuZTi0wv34OCt/UQBMu5j8XLB6T30s9bsNVbAkO8rZlwlzNS1yO6 FoQI1gOj/5J3bYWarqqjbBZk7g== X-Received: by 2002:a17:902:e60e:: with SMTP id cm14mr27695513plb.192.1551209513481; Tue, 26 Feb 2019 11:31:53 -0800 (PST) Received: from localhost ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id d129sm15319595pgc.59.2019.02.26.11.31.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Feb 2019 11:31:52 -0800 (PST) Date: Tue, 26 Feb 2019 11:31:52 -0800 From: Matthias Kaehlcke To: Balakrishna Godavarthi 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() Message-ID: <20190226193152.GA135932@google.com> References: <20190225234954.82942-1-mka@chromium.org> <20190225234954.82942-3-mka@chromium.org> <0c928a085f4c237c3efe0ad9fda803d9@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <0c928a085f4c237c3efe0ad9fda803d9@codeaurora.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Balakrishna, Thanks for the reviews! On Tue, Feb 26, 2019 at 05:54:24PM +0530, Balakrishna Godavarthi wrote: > 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. I don't know if it was necessary (or at least helped in the power-off case) without this series, but my testing suggests it is not needed with the delay after the power off pulse ("[3/3] Bluetooth: hci_qca: Add delay after power-off pulse"). I'll send a new version without the delay. Thanks Matthias