On Mon, 11 Jun 2012, Lan Tianyu wrote: > This patch is to add two sys files for each usb hub ports to control port's power. > Control port's power through setting or clearing PORT_POWER feature. > > The new sys files is under the usb hub interface sysfs portx directory. > ls /sys/bus/usb/devices/1-0:1.0 > bAlternateSetting bInterfaceClass bInterfaceNumber bInterfaceProtocol > bInterfaceSubClass bNumEndpoints driver ep_81 modalias power > subsystem supports_autosuspend uevent port1 port2 port3 port4 > > ls /sys/bus/usb/devices/1-0:1.0/port1 > control state > > control has two options. "on" and "off" > "on" - port power must be on. > "off" - port power must be off. > > state reports usb port's power state > "on" - power on > "off" - power off > "error" - can't get power state > > Signed-off-by: Lan Tianyu <tianyu.lan@xxxxxxxxx> Acked-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html