Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp656599pxb; Thu, 19 Aug 2021 08:12:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxozX3HIrUgGq1oePPB9R7eP7uE3kvQ+JklDihghQyN1aKGno309N00FA/VMBLK6hiAXarx X-Received: by 2002:a5d:8754:: with SMTP id k20mr11864399iol.160.1629385969089; Thu, 19 Aug 2021 08:12:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629385969; cv=none; d=google.com; s=arc-20160816; b=d3TQkx8n+i+jEcVk7pcCR1d9U0AZ7a9iH8L/KeUED238qXmnBZxiQP5KtoYb3iJaX3 ujvmQcwefaovAmhW1A8m+8eSjgiSYPZ5e4f06lkRxpq+80cYwhyv4NLjRmJgL7Ci4NGZ FQZ5JxUPeedEmhHtGDJYxAgDxIqs3ZlzM1cQOIDIY/X2yI8lRLrID/Qud2TKiX+Aj7iH 1odOyOawn90SKZZ4IwSPW/bCbvN5hvGdYsUt7uWelYbLAMjlVReGVzbcoLX5JAGPrNWh 2WYonqWuh0xt4/BUmIo41qFAXm57zF7WCfeizapfxg1v7Gv7/Wz22tqqwTfXdR7VxTLV Rfvw== 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=FHz/dvwVmyow9W8kHzp5Llv/tcywyXCvHaF9QVy2YLk=; b=bFsuDAgvDpkUrKXsi+ph5SB//QkXSn5ys0rgmqj2uWLnrrlOzcA+M2XbYrsSY1Yr1k EIWHFN08nObspB91NOCrXoup8f00pKGaDreXx3WQATP0ZuURh7XqWXkuCtGtuKbAoxG1 LQ8DSJ6kexwCFWpuOES6SjpTyVI3YNOwbIvxc4ODsLP6L1CJL3dvVa+/7UaCkW8uSxqq PDHPxjFCEFcaQLRIft6qm9L2bljVqRDogxlK6taLrUErfzYWXBs6AoGjN8HDMbZY7NmF oOxzTCNij5eSP/puNour/HJZVW/+ZUPNGKmNz7a4Zj2fE1ayXfKP8Uga/Kks1MiX0GFQ 6cXg== 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 s2si3724072ilv.0.2021.08.19.08.12.36; Thu, 19 Aug 2021 08:12: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; 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 S239535AbhHSPM3 (ORCPT + 99 others); Thu, 19 Aug 2021 11:12:29 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:49935 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238587AbhHSPM2 (ORCPT ); Thu, 19 Aug 2021 11:12:28 -0400 Received: from smtpclient.apple (p5b3d23f8.dip0.t-ipconnect.de [91.61.35.248]) by mail.holtmann.org (Postfix) with ESMTPSA id ABA47CED16; Thu, 19 Aug 2021 17:11:50 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: [PATCH v3] Bluetooth: btusb: Remove WAKEUP_DISABLE and add WAKEUP_AUTOSUSPEND for Realtek devices From: Marcel Holtmann In-Reply-To: <20210817030312.27755-1-max.chou@realtek.com> Date: Thu, 19 Aug 2021 17:11:50 +0200 Cc: Johan Hedberg , Luiz Augusto von Dentz , matthias.bgg@gmail.com, "open list:BLUETOOTH SUBSYSTEM" , open list , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Alex Lu , Hilda Wu , kidman@realtek.com, Archie Pusaka , Abhishek Pandit-Subedi , josephsih@chromium.org Content-Transfer-Encoding: 7bit Message-Id: References: <20210817030312.27755-1-max.chou@realtek.com> To: Max Chou X-Mailer: Apple Mail (2.3654.120.0.1.13) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Max, > For the commit of 9e45524a011107a73bc2cdde8370c61e82e93a4d, wakeup is > always disabled for Realtek devices. However, there's the capability > for Realtek devices to apply USB wakeup. > > In this commit, remove WAKEUP_DISABLE feature for Realtek devices. > If users would switch wakeup, they should access > "/sys/bus/usb/.../power/wakeup" > > In this commit, it also adds the feature as WAKEUP_AUTOSUSPEND > for Realtek devices because it should set do_remote_wakeup on autosuspend. > > Signed-off-by: Max Chou > Tested-by: Hilda Wu > Reviewed-by: Archie Pusaka > Reviewed-by: Abhishek Pandit-Subedi > --- > Changes in v2: > -fix the compiling error due to the incorrect patch file submited > > Changes in v3: > -do rebase and make the patch on the latest revision > --- > drivers/bluetooth/btusb.c | 28 +++++++++------------------- > 1 file changed, 9 insertions(+), 19 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel