Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6239155ybe; Tue, 17 Sep 2019 23:35:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMrjUS1rN3hhzugUXQPzGAOdw6pFgbDn+9JXpsc5C1EeN10rZS2UNJR5MF5amV0cFWuYcb X-Received: by 2002:aa7:c897:: with SMTP id p23mr5236633eds.199.1568788552160; Tue, 17 Sep 2019 23:35:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568788552; cv=none; d=google.com; s=arc-20160816; b=rAydkcI86JABYMLjLVITowcgvWo1NRyNLedACPnDhJ9pa+Ho7LNJwb6b0n+g7I65EW 88/lg3bjo+eQ2x4lpsw+82ru6VmnLsfbym1d6EDcirOwvzD5cRblhBOVRCr4t7ooqmRG bFxJdKD7V2V3iuH5uMrtrEYjmDLxo1X8Dr4xyMp+bSF0nqSD1qTMsqEiw2pLQRoz57j6 +z8TIsgfcfJOWm30Ya3jI82LOXj5Z0A3GojZt7eyA08kFO8oLyXf/yzlnmD4qnlpHJxE X0//ZWkYNZbYVyXn7CG6d1F7H0kFTK6L0ac9YCvB1LSzIblfJsvhZsFp1dDgvQiTouK0 L1kQ== 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=qmf1c85FhcLCEjqJXBwmKBOvLPX2aImhZy9v9scr7XI=; b=ujD5OTVsnC4kYKSOUitbANnovEEUkoLVYbW82LwO7buV1jm09NL6YVu1O+5nh4BEV9 b4gKCg/JngD1fQH1reJP119B6oRwdorTaQ2YoFcyrg6Z2qOL/4dP8zv18ot0bOm+w7WA ISOsgzcvWznMN4TpN9jhBaBT++eB+jQlPRS+dV4buGs5suOhsU8im8kSk0baJOKypzVG Ze8ENBfQNHMGbgdKg0ZFQipt31YwjnCBYeGDMjcbaTebJZrVtzBlxeZa4+LVdXA7aX8z y53hgd47X4EC6WtlCI9Fwe56PTybN/fd0RZ+lhykpUKWp276PQOI4kfa6h3ep2ptrMbX Sv7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vdE6Sggw; 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 t7si2399902ejo.302.2019.09.17.23.35.29; Tue, 17 Sep 2019 23:35:52 -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=vdE6Sggw; 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 S1729260AbfIRGVu (ORCPT + 99 others); Wed, 18 Sep 2019 02:21:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:41434 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729238AbfIRGVs (ORCPT ); Wed, 18 Sep 2019 02:21:48 -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 D06FB20678; Wed, 18 Sep 2019 06:21:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568787707; bh=bwO8NrLUzX5QEkcPRdp7XJubD37gy/0HLOx1LlqE8Uk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vdE6SggwTVFD3Zkg3z+NJYdlZ67ZdyCTN+QqBOeJRVtwq1YbZC9ygpAd/unbY68Zj EBxN++uO6yY5MHZwIPFP5vgVHj9kdMj796eE/pGhmaxmWwgSbQnXMBhrrP7/4MMiqK jFNZEgX8LMm+ImuTQuBjLbK4gHY0J6+uXlI7PYfI= 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.14 42/45] Revert "Bluetooth: btusb: driver to enable the usb-wakeup feature" Date: Wed, 18 Sep 2019 08:19:20 +0200 Message-Id: <20190918061227.872848858@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190918061222.854132812@linuxfoundation.org> References: <20190918061222.854132812@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 @@ -1124,10 +1124,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; @@ -1191,7 +1187,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: