Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1304035pxv; Fri, 23 Jul 2021 05:14:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqj9IsLTKddeQXJQMWZnobDgYonuOcPg/aVu+xC2FyH+bgp6Bjc2sZLMkiAtLJUPW5sfCn X-Received: by 2002:a05:6402:35c8:: with SMTP id z8mr5176031edc.5.1627042460829; Fri, 23 Jul 2021 05:14:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627042460; cv=none; d=google.com; s=arc-20160816; b=NTkWsTxYCQN3kBdIQiy4xI8XDJiKppC5310Kaek9s1rI1i4o4+nEI5wCIHpcn3Cq0H iZIsFrZG4PQQkkyKV+AQ/BZRZOPqumolnEh7XRTsJG0ZcI8BAzAE2Fy7xeENIiY9JsUK 7HmVY4HT13slatI+aFnio9JFsHh9LGPPQ6U4hfioCTQvouowHs37qq1FaonvCWZ5eqUf 8mrtacI0Hg/ATOke1kmpHqafmHp9bMoCDvuORCl6J96V2VwdWl6ObxSKO/0agiiOecoB Na2V/91Wv4hxY7TJj8FVZbSUErblTugNpV8qH/TB6NncSEgS/qAY+7EMAuT2kwIr1z+h ohHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=ReksxUbAMJhXW6ZTGbm9lw/E49Fwwa9FOM77pVsAD0k=; b=gMqbUUm8BlrXNZIXuC2G6dzQRTLuu0EN9i1yMqvZwCFJGWMz38zKPdJMpj28fvEsF3 MuZwEC7i5lsAoa1CtdjWyQSACEEwex/nYrnk2et8NWSW/JyUpddFt440Lkm+iyk1Vpef R3Aarp2M2vxNckj6/iMtqcp2aGxjO4PX8l2nG0b+L3ail15hmd3X99avsNI11utqfWnN bz7UT1KuTSo5jMDK9y4scIeQAd1ke93JCZ0ieTP58Z6CbbRWatQWkyAXGo8MGH0XwSsg BIE6hZ1pbvgBRJGY32DyvBHH6/wWsZXHIlb+WsxW5/kQfSGng83aDr0/UPLWkfgJ4JDE JDWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m25si33166565ejb.570.2021.07.23.05.13.40; Fri, 23 Jul 2021 05:14:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234790AbhGWLbe (ORCPT + 99 others); Fri, 23 Jul 2021 07:31:34 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:48089 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234385AbhGWLbd (ORCPT ); Fri, 23 Jul 2021 07:31:33 -0400 Received: from smtpclient.apple (p5b3d2eb8.dip0.t-ipconnect.de [91.61.46.184]) by mail.holtmann.org (Postfix) with ESMTPSA id 554B8CECFE; Fri, 23 Jul 2021 14:12:04 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: [PATCH v3 1/3] Bluetooth: hci_h5: add WAKEUP_DISABLE flag From: Marcel Holtmann In-Reply-To: <20210723193137.v3.1.I68649745bd11a83265f1e816bf34ecc82775e95a@changeid> Date: Fri, 23 Jul 2021 14:12:04 +0200 Cc: linux-bluetooth , CrosBT Upstreaming , Archie Pusaka , Abhishek Pandit-Subedi , Hilda Wu , Johan Hedberg , Luiz Augusto von Dentz , linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: References: <20210723193137.v3.1.I68649745bd11a83265f1e816bf34ecc82775e95a@changeid> To: Archie Pusaka X-Mailer: Apple Mail (2.3654.100.0.2.22) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Archie, > Some RTL chips resets the FW on suspend, so wakeup is disabled on > those chips. This patch introduces this WAKEUP_DISABLE flag so that > chips that doesn't reset FW on suspend can leave the flag unset and > is allowed to wake the host. > > This patch also left RTL8822 WAKEUP_DISABLE flag unset, therefore > allowing it to wake the host, and preventing reprobing on resume. > > Signed-off-by: Archie Pusaka > Reviewed-by: Abhishek Pandit-Subedi > Reviewed-by: Hilda Wu > > --- > > Changes in v3: > * Rebasing > > Changes in v2: > * Remove unnecessary variable > > drivers/bluetooth/hci_h5.c | 83 +++++++++++++++++++++++++++----------- > 1 file changed, 59 insertions(+), 24 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel