From: Lan Tianyu Date: Tue, 22 Jan 2013 20:26:29 +0000 (+0800) Subject: usb: add runtime pm support for usb port device X-Git-Tag: v3.9-rc1~126^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=971fcd492cebf544714f12d94549d2f0d2002645;p=pandora-kernel.git usb: add runtime pm support for usb port device This patch is to add runtime pm callback for usb port device. Set/clear PORT_POWER feature in the resume/suspend callback. Add portnum for struct usb_port to record port number. Do pm_rumtime_get_sync/put(portdev) when a device is plugged/unplugged to prevent it from being powered off when it is active. Acked-by: Alan Stern Acked-by: Rafael J. Wysocki Signed-off-by: Lan Tianyu Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed