mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] USB: add API for interface driver to vote for autosuspend
@ 2017-06-08 21:58 Yueyao Zhu
  2017-06-08 21:58 ` [PATCH 1/3] " Yueyao Zhu
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Yueyao Zhu @ 2017-06-08 21:58 UTC (permalink / raw)
  To: Jiri Kosina, Benjamin Tissoires, Greg Kroah-Hartman,
	Jaroslav Kysela, Takashi Iwai
  Cc: linux-usb, linux-input, linux-kernel, Andrew Chant,
	Badhri Jagan Sridharan, Dmitry Torokhov, Yueyao Zhu

From: Yueyao Zhu <yueyao@google.com>

Currently, if a USB driver would like to enable autosuspend on the USB
device, usb_enable_autosuspend() seems to be the only option. However,
this acts on the device level, and other interfaces might not desire
to autosuspend the USB device.

For example, for the usb digital audio driver to enable autosuspend on
a device, calling usb_enable_autosuspend() from the interface driver
might not be a good idea as the USB device might have a keyboard HID
interface which generally doesn't handle autosupend very well.

This patch series introduces an API for interface driver to vote
for autosuspend on the interface, and when all interfaces agree to
it, autosuspend can then be enabled on the usb device.

Yueyao Zhu (3):
  USB: add API for interface driver to vote for autosuspend
  HID: usbhid: enable autosuspend for devices whose ...
  sound: usb: allow interfaces the driver claims to autosuspend

 drivers/hid/usbhid/hid-core.c | 37 +++++++++++++++++++++++++++++
 drivers/usb/core/driver.c     | 55 +++++++++++++++++++++++++++++++++++++++++++
 include/linux/usb.h           | 10 ++++++++
 sound/usb/card.c              |  3 +++
 4 files changed, 105 insertions(+)

-- 
2.13.0.506.g27d5fe0cd-goog

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-06-10 11:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-08 21:58 [PATCH 0/3] USB: add API for interface driver to vote for autosuspend Yueyao Zhu
2017-06-08 21:58 ` [PATCH 1/3] " Yueyao Zhu
2017-06-10 11:50   ` kbuild test robot
2017-06-08 21:58 ` [PATCH 2/3] HID: usbhid: enable autosuspend for devices whose Yueyao Zhu
2017-06-08 21:58 ` [PATCH 3/3] sound: usb: allow interfaces that the driver claims to autosuspend Yueyao Zhu
2017-06-09 14:48 ` [PATCH 0/3] USB: add API for interface driver to vote for autosuspend Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®