Thread (2 messages) 2 messages, 2 authors, 2012-10-11

Re: [PATCH] usbnet: Support devices reporting idleness

flat view

From: David Miller <davem@davemloft.net>
Date: 2012-10-11 19:20:28

From: Oliver Neukum <oliver@neukum.org>
Date: Thu, 11 Oct 2012 14:50:10 +0200
Some device types support a form of power management in which
the device suggests to the host that the device may be suspended
now. Support for that is best located in usbnet.

Signed-off-by: Oliver Neukum <redacted>
Applied, but:
quoted hunk ↗ jump to hunk
+void usbnet_device_suggests_idle(struct usbnet *dev)
+{
+	if (!test_and_set_bit(EVENT_DEVICE_REPORT_IDLE, &dev->flags)) {
+		dev->intf->needs_remote_wakeup = 1;
+		usb_autopm_put_interface_async(dev->intf);
+	}		
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Trailing whitespace.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help