Received: by 10.223.185.116 with SMTP id b49csp3847373wrg; Mon, 19 Feb 2018 07:01:15 -0800 (PST) X-Google-Smtp-Source: AH8x2270BMHR533YtVqgdiu+FaDygXxpjj+HoBjywovLaRNOvDPTGACjDDIKAVIaAImVvAXUZlXf X-Received: by 10.99.140.29 with SMTP id m29mr12821852pgd.320.1519052475195; Mon, 19 Feb 2018 07:01:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519052475; cv=none; d=google.com; s=arc-20160816; b=zP5nk1pGB/892/TfBWp3BNRc9LsYxuTQigz8BVPcGwqYsosCFEBdKgFP8aGlv8qglO MMjxcn98CW11t/RAiYm6zSkeoltuy4YhfeFJfSgIMDhrc4ch9coLtCQ5ieViNutTdmE/ oVZcaNaXzP8W1YeHdHS3+Erv/gmZtJwJIuiPr3Qk5i4qzt7+wh0maNM5Iga9rwVpfp32 xhFJk9SIdBD3T56loRJwB3O8RATlQI9SPsr0wbAtyl2bNZedJVmHSrWLIFNZ+ZwMEE2c I9C3f9vRdtqOkKMN/fT+JN7c0TYk/Df8TrDWSZ/z+XONA5xSbLNeeakeYyYF7k4aE4Cx IHqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=Jqtdd/prPWGdDLkYAawNxs1G0/OFtYdFByQjhwijUdI=; b=UGjSG+jVlfE0C/gDsZGKue4N/df8/OAxJZGK5UHj8nilEWCL3IzFGujq2bPUmUF65c DBAhG+/zDXbwCBKpUiqyd1vEpuhG74UuKf3LcPCDO/RYMCXacxIMNYwgT6/p8LiZe0qJ Bvx5IzVRiZlkdV+HGI9zKYKZJWDjNmm28ETw3aDn+2K5HYKRtS+v+/Gr2H8oK54Iq6wu ioc9+n0i7NvBDUh73c0P6vV4XEkRRG8m1/Rhi1uc00Wwx7DgMg2GrjCO+adMPDezbD0H G7GCdGvLXUtpWlafdW0/6vAWHnehHl2+gl+2X/4xdS6yyXivS25lJKAMwlHs8czRsqjR RQsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a89-v6si2980345pla.527.2018.02.19.07.00.48; Mon, 19 Feb 2018 07:01:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753059AbeBSO7t (ORCPT + 99 others); Mon, 19 Feb 2018 09:59:49 -0500 Received: from mail-wm0-f47.google.com ([74.125.82.47]:33408 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753026AbeBSO7q (ORCPT ); Mon, 19 Feb 2018 09:59:46 -0500 Received: by mail-wm0-f47.google.com with SMTP id x4so15672100wmc.0 for ; Mon, 19 Feb 2018 06:59:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Jqtdd/prPWGdDLkYAawNxs1G0/OFtYdFByQjhwijUdI=; b=MoGhNJ/YOACAIDfRXHx2bYF2pqRh9Kz12cUavocBE/7UcmiURGGwUxffPKoURtCOGX tLlzvr+0pzlZ0xZpxj6DtMmya5U+KH5O1Txz5+52ICaIv/7FTwyo/k3So9YZh8niLgwa FYR47YoodW2bXyVo+EPTMoS5+iuHyj0ynKQ0SQC1OEHMgN5uQnQfUNB5m3gb0gwoMDs4 u0AEf03075sNwAA1Ud3kfGheLUqHHFpg/c+7n1xPB3kv7cglWdUNF33BB4ucgr+rHdzb 1gzXBvNo/+oJ0TLhdgCskwdPN48cVgMI7TiGn1D89Bj+JmxrnHn4vu8WWwGceR+0dMsf Cxfw== X-Gm-Message-State: APf1xPBia+LAhwm/UsNe/dBEhbRvqE+Dvfp5/mVHHLyRX1EmPwcDp5HG nx4AwHtqNUaPomcYmHGlIWj/RA== X-Received: by 10.28.245.3 with SMTP id t3mr11064846wmh.134.1519052384892; Mon, 19 Feb 2018 06:59:44 -0800 (PST) Received: from shalem.localdomain (546A5441.cm-12-3b.dynamic.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id y1sm2562479wrh.80.2018.02.19.06.59.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 06:59:43 -0800 (PST) Subject: Re: udev USB autosupend whitelist (was Re: [PATCH] Bluetooth: btusb: Restore QCA Rome suspend/resume fix with a "rewritten" version) To: Brian Norris Cc: Marcel Holtmann , Gustavo Padovan , Johan Hedberg , linux-bluetooth@vger.kernel.org, linux-serial@vger.kernel.org, linux-acpi@vger.kernel.org, stable@vger.kernel.org, Leif Liddy , Matthias Kaehlcke , Daniel Drake , Kai-Heng Feng , matadeen@qti.qualcomm.com, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Guenter Roeck , Benson Leung References: <20180108094416.4789-1-hdegoede@redhat.com> <20180213022455.GA151190@rodete-desktop-imager.corp.google.com> <8cd918fd-bf6f-70ac-e561-e7deffa695f0@redhat.com> <20180216022721.GA69988@rodete-desktop-imager.corp.google.com> <0a13d0f3-8e0d-74df-df9c-2bf0622a9fb6@redhat.com> <20180216164924.GA72213@rodete-desktop-imager.corp.google.com> From: Hans de Goede Message-ID: <28da6a0a-cda6-82f1-9200-4a0bb30c0663@redhat.com> Date: Mon, 19 Feb 2018 15:59:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180216164924.GA72213@rodete-desktop-imager.corp.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 16-02-18 17:49, Brian Norris wrote: > + Benson (and there are probably others that know better answers) > > Hi, > > On Fri, Feb 16, 2018 at 09:26:37AM +0100, Hans de Goede wrote: >> Going a bit off-topic here, so changed the subject. >> I will reply on topic in another mail. >> >> On 16-02-18 03:27, Brian Norris wrote: >>> I use a set of udev rules that manually whitelist devices for >>> autosuspend. You can see it here: >>> >>> https://chromium.googlesource.com/chromiumos/platform2/+/43728a93f6de137006c6b92fbb2a7cc4f353c9bf/power_manager/udev/gen_autosuspend_rules.py#83 >>> >>> You'll find at least one Rome chip in there. >> >> Oh, that is a very interesting link for the work I've been doing to >> improve Linux power-consumption in general: >> >> https://fedoraproject.org/wiki/Changes/ImprovedLaptopBatteryLife >> >> I was actually planning on at least doing such a list for WWAN modems, >> for btusb my approach has been to just enable it everywhere >> (except for QCA devices as I got bugreports for those). >> >> Note that I plan to eventually submit this whitelist to the >> udev rules which are part of systemd upstream, so if chromeos >> is using systemd too, this is something to be aware of for you. > > Chrome OS does not currently use systemd, but thanks for the heads up. > >> Question, is the white-listing of the root and rate-limiting >> hubs really necessary? I thought these have this enabled by default? > > This list is old and maintained by several of my team, originating from > quite a ways back (i.e., much older kernels). It's quite possible that > some of it is redundant today. Ok, I double checked and it seems that explicitly setting power/control to auto for any USB hub is not necessary as they all default to auto now. So FWIW you may want to consider removing this. Regards, Hans