Received: by 10.223.185.116 with SMTP id b49csp4442665wrg; Mon, 26 Feb 2018 18:30:30 -0800 (PST) X-Google-Smtp-Source: AH8x225R7LawK04xOknKSIxm9Tzwzl0NjfOJgmhQCSHHRWIZaDJfqEKIWZx/LlH5g9YdDp3AuQSJ X-Received: by 10.98.204.69 with SMTP id a66mr12603764pfg.33.1519698630190; Mon, 26 Feb 2018 18:30:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519698630; cv=none; d=google.com; s=arc-20160816; b=jG0hfkv0Cvh30A+wu+xjeHcmj0IxTK+FgT4BN3iz4m1U0WyA15ENX6jjUBOeqwbxRw o96JEBMo0nCoc9sTo+3H2dL+BZ17QJrZIxLNYn88H1YhRiRgr1jpocGtquYU1wtVlt+8 LYMkEDXmrYzAlYQxPoN8yPX20lPXclvp0nHRC/Oh1Hf/sLjmGMQwQpPdBQYH1sV/TdQp mw707GGdzlEgwEtiRQsiHbP1UNpCSuKnp1/eClGZCL2ZoS8B4uCESKJvE+El/DpIs/// D4T2GFKtruWYnuyzUICxO7m28GpFFXDbDHjLp4g4/IStaAK4vhmrj0DOsUIK2jr+8t4b IuTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=HQBFtOmOO4Ya/54BSVSkWfgEGVNmkkOk/y5N0ZMahqE=; b=FMsaudJzthw3NBk4eRknLSoBfw0/vOWoDt5VyXbEsQaQg+Y3JWL0nnPCZN818l5uSJ YNHIn/+2T5Jry8Ai0KOnKWywEyldBzmO1vhloGKvIULHXMriS9AQ8nHaIPgVqOmOrytd gILtGrz/Ozo8DxBjCEMENqncjSb7fI5nIk1twBURxZKrrfRYSHdLVyjQrAAdrdTOCLIE UVG7E4leVNFUm99hHslAKT2V2T9ojAWzzeOiHUTsiYtdL+pOxfAzWP/yCOXIXAdSzNBy DaLPlwwbN5V/JponguisoMqCogvPTPPG9YKNAMsCRNS7ruJcC0bGaqK6NZKL32HYpIDn n+kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VJ8E74gP; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y190si7737900pfy.87.2018.02.26.18.30.14; Mon, 26 Feb 2018 18:30:30 -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; dkim=pass header.i=@chromium.org header.s=google header.b=VJ8E74gP; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752001AbeB0C3P (ORCPT + 99 others); Mon, 26 Feb 2018 21:29:15 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35222 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751982AbeB0C3M (ORCPT ); Mon, 26 Feb 2018 21:29:12 -0500 Received: by mail-wm0-f67.google.com with SMTP id x7so18496323wmc.0 for ; Mon, 26 Feb 2018 18:29:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=HQBFtOmOO4Ya/54BSVSkWfgEGVNmkkOk/y5N0ZMahqE=; b=VJ8E74gPWavLsgH8/f+Tixr79368lTw7fJgZFz4M6Hsac0uyZQ/tzfLvkUMFoEQmX+ /0mLGIVnW14wLmOrUFWp63E8Bsgae79/OUkKCGC5HcQhhp3SomevXgDwuDO71K1iWx5q jG3SMZfNPiXW3J1Q2XQx/4BnveUvhEUWz8tMw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=HQBFtOmOO4Ya/54BSVSkWfgEGVNmkkOk/y5N0ZMahqE=; b=eR52/9fAa8/mAqqiCfIqET1HHuhJfmTnFw44IEJIrqFtoRD5nNq5Jz6vdqta5oSE0K /wjSfjHCK99c3NF25UUdj4NbqOd+A0lG5cTKvzLm4J5LfLwoxOWJ3KVGN0K56l4OOXOy erUPyA3lS7zuYngZiGTUX7OxJgwc7kRAHA4z/P1SmVgGDM6CKxhQpPkuDBUJRUs5ScV1 guKGYDGzuGOUNdB0jlHPNGzwMh3ydy+tw2W28L7KNHOC7kyRtPRbUFlflHrrn2mkpSLK atOErEQRB8QF6uNaYPcnmpOgmeVrw7ehbMbaiDHFX9S8aY+QrDrXxpq6tA/QGz25Ommv uuHg== X-Gm-Message-State: APf1xPB6iMSx5JJILKr48MLYf/8f3J24v63uCBFqeZEUWNSAaqvf8gcf Pok9JDNBe43igxv0SpjxRqmq4Z8uu9I= X-Received: by 10.80.203.134 with SMTP id k6mr16746566edi.166.1519698551080; Mon, 26 Feb 2018 18:29:11 -0800 (PST) Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com. [74.125.82.43]) by smtp.gmail.com with ESMTPSA id z11sm7459299edh.94.2018.02.26.18.29.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Feb 2018 18:29:09 -0800 (PST) Received: by mail-wm0-f43.google.com with SMTP id w128so15145241wmw.0 for ; Mon, 26 Feb 2018 18:29:09 -0800 (PST) X-Received: by 10.80.247.195 with SMTP id i3mr16979612edn.121.1519698548631; Mon, 26 Feb 2018 18:29:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.133.201 with HTTP; Mon, 26 Feb 2018 18:29:08 -0800 (PST) In-Reply-To: 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> <345b0de8-1a23-d2f8-bc56-507eadf7faa7@redhat.com> <6B37F6AC-1103-4FCF-A5DC-4BA236A7B11B@holtmann.org> <1a08612e-2531-3711-ec0f-a867e86d0009@redhat.com> <20180216175955.GA80944@rodete-desktop-imager.corp.google.com> <20180223031216.GA230265@rodete-desktop-imager.corp.google.com> From: Brian Norris Date: Mon, 26 Feb 2018 18:29:08 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Bluetooth: btusb: Restore QCA Rome suspend/resume fix with a "rewritten" version To: Hans de Goede Cc: Marcel Holtmann , "Gustavo F. Padovan" , Johan Hedberg , Bluez mailing list , linux-serial@vger.kernel.org, ACPI Devel Maling List , stable , Leif Liddy , Matthias Kaehlcke , Daniel Drake , Kai-Heng Feng , Matadeen Mishra , Linux Kernel Mailing List , Greg Kroah-Hartman , Guenter Roeck Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 22, 2018 at 11:14 PM, Hans de Goede wrote: > On 23-02-18 04:12, Brian Norris wrote: >> Hmm? I'm not sure I completely follow here when you say "he was not >> hitting the firmware loading race". If things were functioning fine with >> system suspend (but not with autosuspend), then he's not seeing the >> controller (quoting commit fd865802c66b) "losing power during suspend". > > > He was running a kernel with the original "fd865802c66b Bluetooth: btusb: > fix QCA Rome suspend/resume" commit, which fixes regular suspend for > devices which are "losing power during suspend", but does nothing for > runtime-suspend. > > He ran tests both with and without runtime-pm enabled with that same kernel > and he needed to disable runtime-pm to get working bluetooth. Did he ever test with commit fd865802c66b reverted? My symptoms were exactly the same as you described. BT was broken as of v4.14 if I had runtime suspend enabled. Things were fine if I either (a) reverted the patch or (b) disabled runtime suspend. I obviously preferred (a), which is why I continued to complain :) Did your tester ever try (a)? If not, then I don't think you've really ensured that he really needed a "fixed" version; he may not have needed the patch at all. Or an alternative question: did that system work on an older Fedora release (and presumably an older kernel)? If so, then he probably also did not need that patch. >> So, that would suggest he could only be seeing the race (as I was), and >> that his machine does not deserve a RESET_RESUME quirk? > > > I hope my above answer helps to clarify why I believe the quirk is > necessary on his machine. I'm sorry, but no it doesn't. If anything, it suggests to me even more that it may not have been necessary. But hey, I'm not personally going to notice if random Lenovo laptops are wasting power. Brian