[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20121011.152023.1518627353741520073.davem@davemloft.net>
Date: Thu, 11 Oct 2012 15:20:23 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: oliver@...kum.org
Cc: netdev@...r.kernel.org, oneukum@...e.de
Subject: Re: [PATCH] usbnet: Support devices reporting idleness
From: Oliver Neukum <oliver@...kum.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 <oneukum@...e.de>
Applied, but:
> +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.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists