Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1796309ybg; Thu, 30 Jul 2020 02:56:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuAS3J75S09YX0SoFJpdX/hI4HX5OwB9bXz7U5yxVUKLW+bMTu9kXI5lzfAaz+TE4pV0Ea X-Received: by 2002:a17:906:dbf4:: with SMTP id yd20mr1744837ejb.369.1596103000000; Thu, 30 Jul 2020 02:56:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596102999; cv=none; d=google.com; s=arc-20160816; b=AP0e13CrwUM+zXdXFkrpmJdfNxVnZi1oEcp+wcBSq1ikfwNKrpYI4RnoJ0P210Uvor JHIeRboOXyzA+WITuZNdUzWG+7Mtz2FetTuIXIVPpxdrvuJG84csrtYpeD2Ve1uOjkrJ cB8VrLWtQdJ4orXc+SD6dSjc5CVOTWihGgRrCzs7Ph1CPMIPPfMkGM6rbtMwbA+Y79y2 lCeckDOxmShgHtqki4dWU8HHuLOn7/psdCWBJuYIoDpVwxGChyU/hKDozv6g2Z67XPT4 zRFtvPqyDOvR61x3rPcHk+5rDs7eVieMLgsQ58IfPqvdyo3kduxyHy+aO9bmhlmTouGf vINQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=9kHmrQ9rziOkKzMwdukEUY1yGPEz7qjwlq8LBxyV0cc=; b=TM+TlXVMOjMmrygiljP/eUKZ36yycldJjAtsaRla9Ztc1FGc/yKZCTC+H7/YKeexhu 9O6j2/S3l54OoXwwTn3ewkvrW6vogcsCEUtjm00Ae0wNFgRzcfZzxQzj2QZnVXDd0uNx nrNZ1kfY9OA86UlGLQXKWI7dg1pl9RIFPBJWb3x3ssM2tJsxuU+CCtff234xqDYUNk3u ATpzSkdhDvtxoEPQX1C6K6McMBAnEuwwf9wDEE8wdnpngc2EcsOM3c+9DI6HUukRaOzH ykJbePVoH5B8cRJMSuRmlDEclxv0MFkfoEkhdtIxlRrL+lpxnZlR2e+VZ53qZZ+9kv2M 138g== 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 z15si2890768ejr.25.2020.07.30.02.56.15; Thu, 30 Jul 2020 02:56:39 -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 S1729100AbgG3Jzy (ORCPT + 99 others); Thu, 30 Jul 2020 05:55:54 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:35882 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726790AbgG3Jzy (ORCPT ); Thu, 30 Jul 2020 05:55:54 -0400 Received: from marcel-macbook.fritz.box (p4ff9f430.dip0.t-ipconnect.de [79.249.244.48]) by mail.holtmann.org (Postfix) with ESMTPSA id 6647FCECF2; Thu, 30 Jul 2020 12:05:53 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [PATCH] Revert "Bluetooth: btusb: Disable runtime suspend on Realtek devices" From: Marcel Holtmann In-Reply-To: <20200729161740.1.Ib03d0827c8e48fc3df887fec698f79fa335c9274@changeid> Date: Thu, 30 Jul 2020 11:55:51 +0200 Cc: chromeos-bluetooth-upstreaming , Kai-Heng Feng , Bluetooth Kernel Mailing List , Alex Lu , linux-pm@vger.kernel.org, Johan Hedberg , linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: References: <20200729161740.1.Ib03d0827c8e48fc3df887fec698f79fa335c9274@changeid> To: Abhishek Pandit-Subedi X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Abhishek, > This reverts commit 7ecacafc240638148567742cca41aa7144b4fe1e. > > Testing this change on a board with RTL8822CE, I found that enabling > autosuspend has no effect on the stability of the system. The board > continued working after autosuspend, suspend and reboot. > > The original commit makes it impossible to enable autosuspend on working > systems so it should be reverted. Disabling autosuspend should be done > via module param or udev in userspace instead. > > Signed-off-by: Abhishek Pandit-Subedi > --- > We have a few Chromebooks using the RTL 8822CE part over USB and they > are running without problems with autosuspend enabled. While bringing up > a new board, I found some power regressions that I was able to narrow > down to this change so I'm requesting a revert. > > I tested this on Hp Chromebook 14a (running 4.14 kernel and 5.4 kernel) > with this revert: > * Enabled autosuspend, used it normally with a HID device > * Suspended the Chromebook and verified it worked normally on resume > * Rebooted the Chromebook and verified Bluetooth was working on next > boot > > I didn't see the issue that was originally reported with this fix. For > the original reporter, if you're still seeing this issue, there are > other ways to disable autosuspend for your device: > * set module param: enable_autosuspend=0 > * change your kconfig so BT_HCIBTUSB_AUTOSUSPEND=n > * use a udev rule to disable autosuspend for specific vid:pid > > Keeping this change in the kernel makes it impossible to enable > autosuspend so it should be reverted. > > drivers/bluetooth/btusb.c | 4 ---- > 1 file changed, 4 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel