[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190917212702.35747-1-abhishekpandit@chromium.org>
Date: Tue, 17 Sep 2019 14:27:00 -0700
From: Abhishek Pandit-Subedi <abhishekpandit@...omium.org>
To: linux-bluetooth@...r.kernel.org, linux-usb@...r.kernel.org
Cc: dianders@...omium.org,
Abhishek Pandit-Subedi <abhishekpandit@...omium.org>,
Kai-Heng Feng <kai.heng.feng@...onical.com>,
Alan Stern <stern@...land.harvard.edu>,
Hui Peng <benquike@...il.com>, linux-pm@...r.kernel.org,
Johan Hedberg <johan.hedberg@...il.com>,
Suzuki K Poulose <suzuki.poulose@....com>,
Mark Brown <broonie@...nel.org>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
Wolfram Sang <wsa@...-dreams.de>, linux-kernel@...r.kernel.org,
Marcel Holtmann <marcel@...tmann.org>,
Len Brown <len.brown@...el.com>,
Mathias Payer <mathias.payer@...elwelt.net>,
Dmitry Torokhov <dtor@...omium.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Mans Rullgard <mans@...sr.com>, Pavel Machek <pavel@....cz>,
YueHaibing <yuehaibing@...wei.com>
Subject: [PATCH 0/2] Reset realtek bluetooth devices during user suspend
On a Realtek USB bluetooth device, I wanted a simple and consistent way
to put the device in reset during suspend (2 reasons: to save power and
disable BT as a wakeup source). Resetting it in the suspend callback
causes a detach and the resume callback is not called. Hence the changes
in this series to do the reset in suspend_noirq.
I looked into using PERSIST and reset on resume but those seem mainly
for misbehaving devices that reset themselves.
This patch series has been tested with Realtek BT hardware as well as
Intel BT (test procedure = disable as wake source, user suspend and
observe a detach + reattach on resume).
Abhishek Pandit-Subedi (2):
usb: support suspend_noirq
Bluetooth: btusb: Reset realtek devices on user suspend
drivers/bluetooth/btusb.c | 26 ++++++++++++++++++
drivers/usb/core/driver.c | 56 +++++++++++++++++++++++++++++++++++++++
drivers/usb/core/usb.c | 6 +++++
include/linux/pm.h | 8 ++++++
include/linux/usb.h | 3 +++
5 files changed, 99 insertions(+)
--
2.23.0.237.gc6a4ce50a0-goog
Powered by blists - more mailing lists