netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH v1 0/3] usbnet: runtime suspend when link becomes down
@ 2012-09-18 14:23 Ming Lei
  2012-09-18 14:23 ` [RFC PATCH v1 1/3] usbnet: introduce usbnet_link_change API Ming Lei
       [not found] ` <1347978201-6219-1-git-send-email-ming.lei-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
  0 siblings, 2 replies; 9+ messages in thread
From: Ming Lei @ 2012-09-18 14:23 UTC (permalink / raw)
  To: David S. Miller, Greg Kroah-Hartman
  Cc: Oliver Neukum, Fink Dmitry, Rafael Wysocki, Alan Stern,
	netdev-u79uwXL29TY76Z2rM5mHXA, linux-usb-u79uwXL29TY76Z2rM5mHXA

Hi,

Currently only very few usbnet devices support the traffic based
runtime PM, eg. wake up devices if there are packets to be transmitted.

For the below situation, it should make sense to runtime suspend usbnet
device to save power:

	- after network link becomes down

This patch implements the runtime PM triggered by network link change
event, and it works basically on asix usbnet device after a simple
runtime PM test.

Change Log:
v1:
	-- use system_freezable_wq to fix deadlock by calling
	usbnet_link_updated in same workqueue
	-- use system_freezable_wq to stop link check work during
	system sleep
	-- fix bug of possible change of previous autosuspend_delay
	-- set/clear 'needs_remote_wakeup' for devices which support
	remote wakeup on link change
	-- convert EXPORT_SYMBOL_GPL to EXPORT_SYMBOL
	-- introduce module parameter of link_autocheck_time
	-- introduce link_rpm_supported to not start link
	runtime PM for devices which can't detect link change
	(such as smsc95xx)

	Thanks for Oliver's review.

 drivers/net/usb/asix_devices.c |    6 +-
 drivers/net/usb/cdc_ether.c    |    5 +-
 drivers/net/usb/cdc_ncm.c      |    9 +-
 drivers/net/usb/dm9601.c       |    7 +-
 drivers/net/usb/mcs7830.c      |    6 +-
 drivers/net/usb/sierra_net.c   |    6 +-
 drivers/net/usb/usbnet.c       |  280 +++++++++++++++++++++++++++++++++++++++-
 include/linux/usb/usbnet.h     |   22 +++-
 8 files changed, 306 insertions(+), 35 deletions(-)


Thanks,
--
Ming Lei

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2012-09-20 21:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-18 14:23 [RFC PATCH v1 0/3] usbnet: runtime suspend when link becomes down Ming Lei
2012-09-18 14:23 ` [RFC PATCH v1 1/3] usbnet: introduce usbnet_link_change API Ming Lei
     [not found]   ` <1347978201-6219-2-git-send-email-ming.lei-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2012-09-19  8:38     ` Oliver Neukum
2012-09-20 21:02     ` David Miller
     [not found] ` <1347978201-6219-1-git-send-email-ming.lei-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2012-09-18 14:23   ` [RFC PATCH v1 2/3] usbnet: apply usbnet_link_change Ming Lei
2012-09-19  8:39     ` Oliver Neukum
2012-09-18 14:23   ` [RFC PATCH v1 3/3] usbnet: support runtime PM triggered by link change Ming Lei
2012-09-18 14:28   ` [RFC PATCH v1 0/3] usbnet: runtime suspend when link becomes down Oliver Neukum
2012-09-18 14:36     ` Ming Lei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).