public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH V6 0/8] usb: usb port power off mechanism and expose usb port connect type
@ 2013-01-21 14:17 Lan Tianyu
  2013-01-21 14:18 ` [PATCH v6 2/8] usb: Register usb port's acpi power resources Lan Tianyu
                   ` (5 more replies)
  0 siblings, 6 replies; 24+ messages in thread
From: Lan Tianyu @ 2013-01-21 14:17 UTC (permalink / raw)
  To: gregkh, lenb; +Cc: linux-usb, linux-acpi, stern, sarah.a.sharp

Change since v1:
       optimize the export connect type patch and adjust the DeviceRemovalbe flag
in the rh_call_control() after GetHubDescriptor request being processed.
       move all debounce operation to usb port's runtime resume callback(). Add
did_runtime_put in the struct usb_port to call pm_runtime_get/put(portdev) paired.
       using pm_runtime_get/put(portdev) to allow or prohibit device to be power
off inside of pm qos request in the kernel side. 

Change since v2:
       Correct some link breaks. 
       Add did_runtime_put in the usb_disconnect() before calling pm_runtime_put(portdev).
       Provide two seperate functions usb_device_allow_power_off() and usb_device_prevent_power_off()
instead of just one.

Change since v3:
	Set did_runtime_put to false in usb_disconnect() when its value is true
	Add comment about "not enable port runtime pm if fail to expose port's pm qos." and call
pm_runtime_set_active(portdev) unconditionally.
	rename "usb_device_allow_prevent_power_off" with "usb_device_control_power_off"
	Modify "be power off" to "be powered off"
	Expose dev_pm_qos_flags() symbol in order to ensure usb core can compile as module. 

Resend v4:
        make patch "PM/Qos: Expose dev_pm_qos_flags symbol" as first patch to avoid compilation error during "git bisect"
        correct some comments.

Change since v4:
	use EXPORT_SYMBOL_GPL to export dev_pm_qos_flags().
	correct some unnecessary link breaks.	
	Add CONFIG_USB_SUSPEND check around usb_port_runtime_resume() and usb_port_runtime_suspend()

Change since v5:
	predefine struct usb_hub_descriptor in the /driver/usb/core/usb.h instead of including "linux/usb/ch11.h"
	move patch "PM/Qos: Expose dev_pm_qos_flags symbol" before patch "usb: add runtime pm support for usb port device"
	 where dev_pm_qos_flags() fistly is called.


This patchset is based on usb-next tree commit f4cc1834 "USB: storage: avoid scanning other targets for single target device"

This patchset is to add usb port power off mechanism and
merge with patchset "usb: expose DeviceRemovable to user space via sysfs attribute".

Patchset "usb: expose DeviceRemovable to user space via sysfs attribute".
http://marc.info/?l=linux-usb&m=135279430410171&w=2 with some link break corrects

The main discussion about usb port power off mechanism is in the following link:
http://marc.info/?l=linux-usb&m=134818340017208&w=2


USB: Set usb port's DeviceRemovable according acpi information
usb: Register usb port's acpi power resources
PM/Qos: Expose dev_pm_qos_flags symbol
usb: add runtime pm support for usb port device
usb: add usb port auto power off mechanism
usb: expose usb port's pm qos flags to user space
usb: add usb_device_allow_power_off() and usb_device_prevent_power_off() function.
usb: enable usb port device's async suspend.

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

end of thread, other threads:[~2013-01-22 15:09 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-21 14:17 [PATCH V6 0/8] usb: usb port power off mechanism and expose usb port connect type Lan Tianyu
2013-01-21 14:18 ` [PATCH v6 2/8] usb: Register usb port's acpi power resources Lan Tianyu
     [not found]   ` <1358777887-2656-3-git-send-email-tianyu.lan-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2013-01-21 21:20     ` Greg KH
2013-01-22  3:11       ` Lan Tianyu
2013-01-21 14:18 ` [PATCH v6 3/8] PM/Qos: Expose dev_pm_qos_flags symbol Lan Tianyu
2013-01-21 14:18 ` [PATCH v6 4/8] usb: add runtime pm support for usb port device Lan Tianyu
     [not found]   ` <1358777887-2656-5-git-send-email-tianyu.lan-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2013-01-21 21:24     ` Greg KH
2013-01-22  3:30       ` Lan Tianyu
     [not found] ` <1358777887-2656-1-git-send-email-tianyu.lan-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2013-01-21 14:18   ` [PATCH v6 1/8] USB: Set usb port's DeviceRemovable according acpi information Lan Tianyu
2013-01-21 14:18   ` [PATCH v6 5/8] usb: add usb port auto power off mechanism Lan Tianyu
2013-01-21 21:30     ` Greg KH
2013-01-21 14:18   ` [PATCH v6 8/8] usb: enable usb port device's async suspend Lan Tianyu
     [not found]     ` <1358777887-2656-9-git-send-email-tianyu.lan-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2013-01-21 21:34       ` Greg KH
     [not found]         ` <20130121213418.GF20083-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2013-01-22 14:23           ` Lan Tianyu
2013-01-21 14:18 ` [PATCH v6 6/8] usb: expose usb port's pm qos flags to user space Lan Tianyu
2013-01-21 21:31   ` Greg KH
2013-01-22 13:50     ` Lan Tianyu
2013-01-21 14:18 ` [PATCH v6 7/8] usb: add usb_device_allow_power_off() and usb_device_prevent_power_off() function Lan Tianyu
     [not found]   ` <1358777887-2656-8-git-send-email-tianyu.lan-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2013-01-21 21:33     ` Greg KH
2013-01-22 13:59       ` Lan Tianyu
2013-01-22 15:09         ` Alan Stern
2013-01-21 21:33     ` Greg KH
     [not found]       ` <20130121213346.GE20083-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2013-01-22 14:23         ` Lan Tianyu
     [not found]           ` <50FEA0D0.6020106-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2013-01-22 15:05             ` Greg KH

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