Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp524222img; Tue, 26 Feb 2019 04:19:26 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia3JYpMVqfjhH0WjV7fLKq+p/p8MzeKSaAy+ebBrGZOirloAyK+TkJ6lrhR4F9FHmS0HazN X-Received: by 2002:a65:624c:: with SMTP id q12mr24230167pgv.379.1551183566300; Tue, 26 Feb 2019 04:19:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551183566; cv=none; d=google.com; s=arc-20160816; b=T/odWXXWfVjRM76OW88mbBeKKWLW7GzfsxL/IQstCd6kFazbBlbsRJZZU1GbEUb/x5 rLGm5rbfu2VWir84IYWatKA4BdqNBubIcao0UVsRDrT2pqajYzIBjgYqSZGGXP2IuQMi KCR3gqlRVs9ZZT9goNsFj+xjpx/DARZygWorowixKMXKLKRdI3aeCJlYtyMIOT79IJ0/ gGklMb/L5r0YAc9VxwkBkUr0suDYplN7naDuAZX6TO/dOM1HRsCnbdVlO7WlXYuL4RMq Xn8CO0KZLBcNIGstEfCw0Jv9nOGc9Hh/8PCuY4XXK1yKnz5Y/h2ot9d5CEjDGTTNid+G BhgQ== 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=tiMKPIwUHPNhyhLzH9HC+zapKzqQb5UGleMB0pLmw2A=; b=oW0d2OG4GGkei6L31/Mn2o+8M32wVBHGsdzUx3dlUDwbZFID2YJ5a+fTAwpDgEXgvF plYnTFSWl0k4IZI3hz/Ucvvhi8Ff7OZCOtWYTFjwZL1GOYPP8dixSw4POELtMMR+i6g1 xy5tunmgEZicFVUseXrhYEJoMtmqupKWqx/VZ6GV313EL54eIFblKKgl0IK9PF/svGeb wHGaHSCbJRTjMpWJ/gZds1/rt0sgK0kiE+0SzQAlQppMLJADq9Byot/7BcgFHtpk1zrj pTQjVGaO2l83v309HutCdF8RPLmCUhcAkELgdF0zVMrvu3ndmN+eHlKyJvuu9zZ1IfXh fK9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=oc+uxhjS; dkim=pass header.i=@codeaurora.org header.s=default header.b="VB/d8iOu"; 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.19.11; Tue, 26 Feb 2019 04:19:26 -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=oc+uxhjS; dkim=pass header.i=@codeaurora.org header.s=default header.b="VB/d8iOu"; 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 S1726655AbfBZMSr (ORCPT + 99 others); Tue, 26 Feb 2019 07:18:47 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:38608 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726084AbfBZMSr (ORCPT ); Tue, 26 Feb 2019 07:18:47 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E954E618D9; Tue, 26 Feb 2019 12:18:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1551183526; bh=UONnNH4WOnsCiCy9kEILc/DeuLx3fQCQeeSJKKVvIdQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=oc+uxhjSQhVYDovwKpnsFTBHozAWdi1I/qdnrsvhzDRYPwD1T4MY4Fz6C81BMwWqY yFuRu/LK4byLJ3kVWWM5F4kgOcVYopxpuP4gi35U6zf6hencLFn/cnGIcBEAi6Jrl/ 9w0jcflnb2k+XbcW7Gaz6zM1GTuA3wrgRLGnKlFc= 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 58AED617AA; Tue, 26 Feb 2019 12:18:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1551183525; bh=UONnNH4WOnsCiCy9kEILc/DeuLx3fQCQeeSJKKVvIdQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VB/d8iOupZFbV6TkqIqbojyKt7niCXXldLWj6zN3dE+YDD9O+I5Rhb/EgzHPZpK9b 5TlRgB3BCA5XBvuFkxyHZtPp99OG8wj+IvLgs0CnO38oCnUUjb5QlBtk7V+/RNy5f4 rnkCWZFtvX6yRp87hourB1DjPZIFY7UoG/LA94Ew= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 26 Feb 2019 17:48:45 +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: <20190225234954.82942-3-mka@chromium.org> References: <20190225234954.82942-1-mka@chromium.org> <20190225234954.82942-3-mka@chromium.org> Message-ID: 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: > 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); > 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.