Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6238286ybe; Tue, 17 Sep 2019 23:34:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwa468MX0zutaimjwL3c0afdlbS4k/Hp+te2ezlYFbrvohuktxGDWgpeoSoKlKcFkkFduF3 X-Received: by 2002:aa7:c616:: with SMTP id h22mr8496725edq.96.1568788478535; Tue, 17 Sep 2019 23:34:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568788478; cv=none; d=google.com; s=arc-20160816; b=lpRonG/zFiF8LcJoOOTKE5iYLhO5Evjw2RSnNfF/IF9lod8tTC/sHufAcJWo6gPhOS CqTN0onJ4TQeR3r95ZYqlmDy0f23h/ekp8Bi5iUHqYd5csbYp32a3j+8M3FFYH5ajay2 Q2dgzePjTRm+QhydiBSNd3lJjtqOWLqo1RnjMBmugJ2rYycLpZwlbauX0h0E9MZezSUy B4zDgIooup4zeNyXJf7SF4yG2tJPY6DXfBjkGTzMolPB7e4/BkKhVfn3OWloOA1mYywX V7VXdCxXqdfwgLrQu1CGdzYq9EjBpZpcwRaRDySI+OmUYllCW1ln3HAdXbKKgXVeuCQK 1BPw== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OcYJolkhM9ixZzbRuKTjkNlpqsVWjpB1t+iPPyIsItM=; b=h9b33p/gTik6XhkZOCPpv5KM+Yv2BXMDwe1JTBSF0V8n3gkO0MlN7EBcoHATjVLVyR iIYgx60w09trBETIdQnPs3YbkMxng7jZjloQtHMR0wcvKg5+ztL0U+CBzL8d7h7E0gQb IpGU1eC35VtvhAfD+T1azDqDIbIJyfR8pi2To62YYIIgwjVjkk4Bb4H5PZyifcItkugd 1i2V3p5ZNmWDVcQWt4aEGbZUhLPoB53aYTJJL3TybndyDsM44VA3tW4lhCpzQhMjRgAA +9zzKkC0p6FQseePIG4oeDYgxVguDL36Dpkza9QWnVKDbQPpKVOGmZt5RsUSG3Ztz6b9 B4EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uPT+Tw9M; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c54si2767235edb.230.2019.09.17.23.34.15; Tue, 17 Sep 2019 23:34:38 -0700 (PDT) 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=@kernel.org header.s=default header.b=uPT+Tw9M; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729663AbfIRGXf (ORCPT + 99 others); Wed, 18 Sep 2019 02:23:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:43734 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729647AbfIRGXc (ORCPT ); Wed, 18 Sep 2019 02:23:32 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5EA24218AF; Wed, 18 Sep 2019 06:23:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568787810; bh=BzxIUKoOvnNYHEWya8UXFU0IIsq/pDGqaOcvKpkqZTM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uPT+Tw9MhsbL4p9AX4eWySkTEVpK6JPS8aqfv82HoJMTHJEZRv1cuzunZ0fkAbTos pfUwCtu5AZNlCEoy4qUbPaWfrP1aGcnBx4y1tBY4NANhT1fsva85RdjbTtUVK/QLVp JLJ/54wLeOCe+4km7r1nN0ERQmC6l9w8Y1vCzID8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bastien Nocera , Christian Kellner , Sukumar Ghorai , Mario Limonciello , Marcel Holtmann Subject: [PATCH 4.19 43/50] Revert "Bluetooth: btusb: driver to enable the usb-wakeup feature" Date: Wed, 18 Sep 2019 08:19:26 +0200 Message-Id: <20190918061228.003282962@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190918061223.116178343@linuxfoundation.org> References: <20190918061223.116178343@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mario Limonciello commit 1ffdb51f28e8ec6be0a2b812c1765b5cf5c44a8f upstream. This reverts commit a0085f2510e8976614ad8f766b209448b385492f. This commit has caused regressions in notebooks that support suspend to idle such as the XPS 9360, XPS 9370 and XPS 9380. These notebooks will wakeup from suspend to idle from an unsolicited advertising packet from an unpaired BLE device. In a bug report it was sugggested that this is caused by a generic lack of LE privacy support. Revert this commit until that behavior can be avoided by the kernel. Fixes: a0085f2510e8 ("Bluetooth: btusb: driver to enable the usb-wakeup feature") BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=200039 Link: https://marc.info/?l=linux-bluetooth&m=156441081612627&w=2 Link: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/750073/ CC: Bastien Nocera CC: Christian Kellner CC: Sukumar Ghorai Signed-off-by: Mario Limonciello Signed-off-by: Marcel Holtmann Signed-off-by: Greg Kroah-Hartman --- drivers/bluetooth/btusb.c | 5 ----- 1 file changed, 5 deletions(-) --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -1139,10 +1139,6 @@ static int btusb_open(struct hci_dev *hd } data->intf->needs_remote_wakeup = 1; - /* device specific wakeup source enabled and required for USB - * remote wakeup while host is suspended - */ - device_wakeup_enable(&data->udev->dev); if (test_and_set_bit(BTUSB_INTR_RUNNING, &data->flags)) goto done; @@ -1206,7 +1202,6 @@ static int btusb_close(struct hci_dev *h goto failed; data->intf->needs_remote_wakeup = 0; - device_wakeup_disable(&data->udev->dev); usb_autopm_put_interface(data->intf); failed: