Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp438554pxb; Mon, 16 Aug 2021 08:47:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIU+Joe64caD2bDanmGkLhZe1TAFyFyPJZd2A7mdmbnJN8R99UXOuHhQuTg0B0hVKGTCf7 X-Received: by 2002:a92:ca0a:: with SMTP id j10mr11623711ils.192.1629128841156; Mon, 16 Aug 2021 08:47:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629128841; cv=none; d=google.com; s=arc-20160816; b=BYjbaJY7+aCU6c2R4crmzGiYK8e4haQvO6SzQtLFgVQqVu23O5zq8aaaJrzeWJx707 SWyTgHwZXfGzJ/vxVxMWKSxYS5Saza4oM59MpLFnWboleucBHvP1p79SpQO3xNZxCkPd +H2Y4DSpYpi3BvPQm6dytG3p7Rdq6KkptQOM820fGfQ4tVVlU0fj+eKBkWfkyOcIFhbJ 4j/xbv1+3IA3ni80YvsZDZW6KcI5XezkyiLj9LdMgQHk0X7B8dSTwoamA/BZuVI1jm5U Ghz/QY8e2HY+t7dnpBQF+MOO9FwB1pw8PUMv+YpvyLbjmdZqNJkiZlucUn4bjkMRjJW9 Z8wA== 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=kWOxB4bVTr+Tn3s7oweBOFNX5uODjNo4ukxnoK3r8x0=; b=Cp3PX8UTKSeO95mPlkI/le7MFf6spCZ39BPANKdtvE03TTh2mJuJvhwjMAz6JP5NG/ FO/EiZi8Pmo89caHdi3RCI11TlMOJ+Axxyo7KgkNI6iHPtHEnn+zA4emmhpFImDkzhxv dcWcBjzC06I7PgHNZ0NwKYASkVCWb21LYOQEAfFXdbmWtGOAA6GvQ9gOuUAvaNQdaW1b bit81JrW4jGSii+6kqMMhroeXdO6ca3FDW+iX8tyEzx3bGXw49jsqqCvCDrinoQFTl+E 5fALJ18g9avt2I0CSCwjxEdPcYSOucUTP5HeyuEIj7CvPJp8zNCPqooupMr/69dHX19o CZAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 f31si12613355jav.78.2021.08.16.08.47.09; Mon, 16 Aug 2021 08:47:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236797AbhHPPqa (ORCPT + 99 others); Mon, 16 Aug 2021 11:46:30 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:49385 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236598AbhHPPqW (ORCPT ); Mon, 16 Aug 2021 11:46:22 -0400 Received: from smtpclient.apple (p5b3d23f8.dip0.t-ipconnect.de [91.61.35.248]) by mail.holtmann.org (Postfix) with ESMTPSA id 95832CECC9; Mon, 16 Aug 2021 17:45:44 +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 v2] Bluetooth: btusb: Remove WAKEUP_DISABLE and add WAKEUP_AUTOSUSPEND for Realtek devices From: Marcel Holtmann In-Reply-To: <20210810020147.14276-1-max.chou@realtek.com> Date: Mon, 16 Aug 2021 17:45:44 +0200 Cc: Johan Hedberg , Luiz Augusto von Dentz , matthias.bgg@gmail.com, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, alex_lu@realsil.com.cn, hildawu@realtek.com, kidman@realtek.com, apusaka@chromium.org, abhishekpandit@chromium.org, josephsih@chromium.org Content-Transfer-Encoding: 7bit Message-Id: <08B718ED-F885-4870-BB80-AB547FEC52B1@holtmann.org> References: <20210810020147.14276-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-kernel@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 wake-up. > > In this commit, remove WAKEUP_DISABLE feature for Realtek devices. > If users would switch wake-up, 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 > --- > drivers/bluetooth/btusb.c | 28 +++++++++------------------- > 1 file changed, 9 insertions(+), 19 deletions(-) this does not apply cleanly to bluetooth-next tree. Regards Marcel