Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1282076pxv; Fri, 23 Jul 2021 04:44:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyISZASY+4JGsJPY08y3OVlFSWZCuwgrXuWf/fkof7skSYlGRsI1UDgqtHD11c0w8dFx6j7 X-Received: by 2002:a17:906:1c43:: with SMTP id l3mr4299371ejg.291.1627040689361; Fri, 23 Jul 2021 04:44:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627040689; cv=none; d=google.com; s=arc-20160816; b=tjR6A7Xvk09ocRQmc6FWC06BqQxoPlmIKh6V3U5SobZvCYLt8vGS+z6321SQSPZK4C Cbf/bVbvBhIK+JxhU5wSLo5+mC6VG+mmeivvSBhKGM/J6RE0KP7yC4ArceYLd3LJBXif yx14pEOMdGUujs/Tw19ag1zD+F7KQyE+3e5t5E8Dus/SwXGIgUyEXnFF33NH4Esn5Y5u JUmsCF5rHMEesuiaXFFdreykyd0viL/VTpVl41kQT5YHGDa4mpVSKcrxO2vn89PJxO5U gdA+SK+81Ii1lFuy148LgXyZ1Qmd/bq+K9dODG0xh+EYsdjcTf33Q678t0ROH9OgpwHr XdNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=I7joHR173kmsc59rBBr/ksencMbsFUjxYr35XX72uJ4=; b=k17nZAY8tvFSXQcIvI/35JTa1YuyGy1NIxuY+BtIuxANJVZdiWxB6y4TFt6DSDU09Q wg6OyqvnNyS9/LMqzGgXz2tsa868/r8tvlBgBE+n2BDT0taTxRoFWEiox9GqYyJyAKjW ZqckoqV52ZHpeVGyBEQ728IevGIzfhSx5Dtqo64HD7MTVZ/ajrLDAto8wBAJM3ydYoIL kCznq7MqpOYG/1sKf9vC/A9gOiqnZOF0Ytdt3Te5LBR0Ruf0mJenkZOmADvkC2Iqkkmr VM3aL3P9lOE+1yUoa2J3scynvMGaE+PXFSBX36a1g9i/xOTbIeJiud14bBRtbfvTzeul hTeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=XmDE1aZ0; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si41882706edi.368.2021.07.23.04.44.15; Fri, 23 Jul 2021 04:44:49 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=XmDE1aZ0; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234530AbhGWLCg (ORCPT + 99 others); Fri, 23 Jul 2021 07:02:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233315AbhGWLCf (ORCPT ); Fri, 23 Jul 2021 07:02:35 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 208C5C061575 for ; Fri, 23 Jul 2021 04:43:09 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id b9so1191871wrx.12 for ; Fri, 23 Jul 2021 04:43:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=I7joHR173kmsc59rBBr/ksencMbsFUjxYr35XX72uJ4=; b=XmDE1aZ04m4QoePKjKFJawONG0A6JuZs/DgUv0j28eTcPurXk++wwQGYzEZtls3jVu Xod3TmM4Fyls9kKhlk6XdWUSypFAzgBgg53DWjxhbDuzlNzNbLaL/qWoEz2a3xN9zQtC LYDGKY3310RxmO1CvWKcsrhQg6MpdlcKQnTfaQ74r90KDBW9EmVe/8F4Gm0Am/mxZtyp k8mlnAlOj4P05/yVIgxsTB24IaKfoVnyuXPxBchHaocjjsw8DI/hVXEPjDWuhCHrPGK/ ondyvi4a2R55a3uFACQydfM/HxZY2oZDHeidtbZXDdkjqocloYZhxR/kwplwb27WTRMw ReeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=I7joHR173kmsc59rBBr/ksencMbsFUjxYr35XX72uJ4=; b=VDb17RK9aGdRZDRE1q5NHsilNNXwHnOOG0z7AHWfJk0uktjPjF8r63vugz3FmCi8hv MuLNhUrPdwtQ2TXCCFvfvFf8MI4Vd8RYDakJtLVZQmEvvI4KF9DCuMtYWsl3BjDFvH3w aWvIikrpuDU0qBiYdzuogTHaBKRFEqWNuKqOslqmp6hE1NEcBZeSIzztS3F/97tV3P8i bRKQwTdMCUBQmUqHIN64/zaJP2Kczd3Jgvup8HvPreLaoNFobkVSgqJxYxEUPsBhtUDI AFuwxVCXU/9+QWepxla/Q7BEF6CoizeYOX2v3qc3PUM2icXTUK+y3zNHmIVb8ZHI9nrA K+5w== X-Gm-Message-State: AOAM531GiDbqjgFBqH8ZxTIYsG3bu5Yf5YliorynWqOx6awgqBlJqY2w ksHLi3z8jq8h6gCQuxSpp7xIQYBSbGQVQabLrIbgXg== X-Received: by 2002:adf:ec07:: with SMTP id x7mr4977285wrn.262.1627040587489; Fri, 23 Jul 2021 04:43:07 -0700 (PDT) MIME-Version: 1.0 References: <20210715225146.v2.1.I68649745bd11a83265f1e816bf34ecc82775e95a@changeid> <57AE120A-78AE-4990-8D7F-BA8D8077B610@holtmann.org> In-Reply-To: <57AE120A-78AE-4990-8D7F-BA8D8077B610@holtmann.org> From: Archie Pusaka Date: Fri, 23 Jul 2021 19:42:56 +0800 Message-ID: Subject: Re: [PATCH v2 1/3] Bluetooth: hci_h5: add WAKEUP_DISABLE flag To: Marcel Holtmann Cc: linux-bluetooth , CrosBT Upstreaming , Archie Pusaka , Abhishek Pandit-Subedi , Hilda Wu , Johan Hedberg , Luiz Augusto von Dentz , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Marcel, On Thu, 22 Jul 2021 at 22:32, Marcel Holtmann wrote: > > 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 v2: > > * Remove unnecessary variable > > > > drivers/bluetooth/hci_h5.c | 83 +++++++++++++++++++++++++++----------- > > 1 file changed, 59 insertions(+), 24 deletions(-) > > so the set does not apply cleanly to bluetooth-next > > Applying: Bluetooth: hci_h5: Add runtime suspend > error: patch failed: drivers/bluetooth/hci_h5.c:11 > error: drivers/bluetooth/hci_h5.c: patch does not apply Hmm, it applies cleanly for me. Not sure what's going on. Anyway I rebased and made a little change as v3, please take a look! > > > And I am really close to not accepting any patches for hci_h5.c anymore. This thing turns into crazy hacking and nobody is taking my hint to redo this as clean H:5 3-Wire serdev standalone driver. Pardon my unfamiliarity, but could you share more about your vision of a clean h5 driver? Should the RTL component be moved out to btrtl? Do we have something as a reference? > > Regards > > Marcel > Thanks, Archie