Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp568233ybp; Fri, 11 Oct 2019 00:23:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDyFaVhaYAvTnJ+qdGdQj8FMqTa3+eYQ+iN0OSqLnke7mXzTlteM8Iw2wzCoj8ZcRAeIL+ X-Received: by 2002:a05:6402:17f1:: with SMTP id t17mr11807644edy.11.1570778608923; Fri, 11 Oct 2019 00:23:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570778608; cv=none; d=google.com; s=arc-20160816; b=TRAISCUNeFYBKhs79Bpe9tyWbHBaHeqzTklFSn+nMmLd9/wRvNNIrpvyNLPGAar7h6 Kz4IYMDO1MhpS/GEQEQ9Z/aB1chF3GxxZ0hQGFqJgW58WuDoZZge52BsmVKWrLefx5fC 8VZDNjoQWOyoxzeLXnVDEFwd+a9DrF+kJskDUgQK7dBsgiWsQUg4BUQakcjMuyfShrwD Oi4c6YRJRIpGle2hastxzSX1+fn0knylymZCtj/D5B6VxhYBGwc+mC5cCROneq0cI66t VUfc8DOIajKOzRIFvwDNww9P2JWYwGAq+wMDFGgeahrTcG9xUYNjzOgZJhjsVUAGaqjz /QfQ== 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=x51X6GH/+kS9YbzFqQJVOHezQTAZpQTTyr2f0bN+hag=; b=WakGzNJm0qo3ThkBMwhBIuz6SS8L4KzBps1S6MpGCSJX3do7VPiQ+/y0eciMPABh3V flrXM9ftz3nVpg+ZGU2gNrhY9Veant/l0eI+a1vFdbzZYTkY30RpCBZ1REl1jZ+IAu8j /K5hLhBpcApNnlxzlaQ9dj4TeY+bnEccQTyzKhEpXRWtEJv93Y5GmJSChZbP5g4mIF10 eDDZA/KbxDreKn1cp/xk+0S+eKot96BDGrougmCFvvWNEVDH+++5WUFvc3uJ5FDAihlC pbhJ9O4MwBy34187CswbVqEhMthJ8S2OrVqQIOqOhCK+TloJaJxlQVg/oQFjr4TNNg0Y 7yAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=lDvSnwYr; dkim=pass header.i=@codeaurora.org header.s=default header.b=dmYotePO; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-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 k1si4644478eja.146.2019.10.11.00.22.51; Fri, 11 Oct 2019 00:23:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-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=lDvSnwYr; dkim=pass header.i=@codeaurora.org header.s=default header.b=dmYotePO; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727610AbfJKHVn (ORCPT + 99 others); Fri, 11 Oct 2019 03:21:43 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:59820 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726679AbfJKHVn (ORCPT ); Fri, 11 Oct 2019 03:21:43 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0AA2060C5F; Fri, 11 Oct 2019 07:21:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1570778502; bh=WkQrvk5nZdbFlR7R6nIX7hBotfoCIQXVHQx/7ibG+Uc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=lDvSnwYrIDpMwOC1dG+D7dKfTFjt4HUFqdy7v0GOjQybddKJrXPkYfcptPJ2F9EGT kousywg6H4M4cSAHsRfQHUhVptCR7D5l3roLnmFOVoccVFHBXjPt6rxEgUNek1dUMu zgLTaO/SbUXLszDRm0Pbh0c7joigBCaM0Xe9A2Lc= 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 9EB9560A0A; Fri, 11 Oct 2019 07:21:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1570778500; bh=WkQrvk5nZdbFlR7R6nIX7hBotfoCIQXVHQx/7ibG+Uc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dmYotePOOzEE6Acy+6MZY5GC2SxDWsJXr7LdEdyJryauUT/oeMqwiddodTivQBFLr E5BUtt3EJxR/jgp2cbbUBcI7e6vWTr68IK35nPuBW5JyBAWX0IjiN12ayUK2SwUp/8 ZrJADS6C5m1q7h9YW3UwSM65PmnPxlJOIcElI33w= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 11 Oct 2019 12:51:40 +0530 From: Balakrishna Godavarthi To: Harish Bandi Cc: Claire Chang , marcel@holtmann.org, johan.hedberg@gmail.com, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, rjliao@codeaurora.org, rongchi@codeaurora.org, linux-bluetooth-owner@vger.kernel.org Subject: Re: [PATCH] Bluetooth: hci_qca: fix in-band sleep enablement In-Reply-To: <238f01ec4b49fee4c0d08a0b8da7e95f@codeaurora.org> References: <20191009085116.199922-1-tientzu@chromium.org> <238f01ec4b49fee4c0d08a0b8da7e95f@codeaurora.org> Message-ID: <74740c0ff64a6a658da2a44a9f9b7ac5@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 Claire, This change will not work as we need fw files to be loaded tofor IBS to active. may i know on which chipset you have this issue of IBS active even with out fw download. On 2019-10-11 12:31, Harish Bandi wrote: > ++ Balakrishna > > On 2019-10-09 14:21, Claire Chang wrote: >> Enabling in-band sleep when there is no patch/nvm-config found and >> bluetooth is running with the original fw/config. >> >> Fixes: ba8f35979002 ("Bluetooth: hci_qca: Avoid setup failure on >> missing rampatch") >> Fixes: 7dc5fe0814c3 ("Bluetooth: hci_qca: Avoid missing rampatch >> failure with userspace fw loader") >> Signed-off-by: Claire Chang >> --- >> drivers/bluetooth/hci_qca.c | 11 +++++++---- >> 1 file changed, 7 insertions(+), 4 deletions(-) >> >> diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c >> index e3164c200eac..367eef893a11 100644 >> --- a/drivers/bluetooth/hci_qca.c >> +++ b/drivers/bluetooth/hci_qca.c >> @@ -1291,10 +1291,8 @@ static int qca_setup(struct hci_uart *hu) >> /* Setup patch / NVM configurations */ >> ret = qca_uart_setup(hdev, qca_baudrate, soc_type, soc_ver, >> firmware_name); >> - if (!ret) { >> - set_bit(QCA_IBS_ENABLED, &qca->flags); >> - qca_debugfs_init(hdev); >> - } else if (ret == -ENOENT) { >> + >> + if (ret == -ENOENT) { >> /* No patch/nvm-config found, run with original fw/config */ >> ret = 0; >> } else if (ret == -EAGAIN) { >> @@ -1305,6 +1303,11 @@ static int qca_setup(struct hci_uart *hu) >> ret = 0; >> } >> >> + if (!ret) { >> + set_bit(QCA_IBS_ENABLED, &qca->flags); >> + qca_debugfs_init(hdev); >> + } >> + >> /* Setup bdaddr */ >> if (qca_is_wcn399x(soc_type)) >> hu->hdev->set_bdaddr = qca_set_bdaddr; -- Regards Balakrishna.