From: Lan Tianyu Subject: [PATCH V5 0/8] usb: make usb port a real device and provide control of port's power to usr space Date: Fri, 29 Jun 2012 14:18:06 +0800 Message-ID: <1340950694-3208-1-git-send-email-tianyu.lan@intel.com> Return-path: Received: from mga09.intel.com ([134.134.136.24]:51435 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751616Ab2F2G0W (ORCPT ); Fri, 29 Jun 2012 02:26:22 -0400 Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: gregkh@linuxfoundation.org, lenb@kernel.org Cc: linux-usb@vger.kernel.org, linux-acpi@vger.kernel.org, stern@rowland.harvard.edu, sarah.a.sharp@linux.intel.com This patchset merged two following patchsets and make usb port a real device. [PATCH V3 1/4] usb: add struct usb_hub_port to store [PATCH V3 2/4] usb: move struct usb_device->children [PATCH V3 3/4] usb/acpi: add the support of usb hub [PATCH V3 4/4] usb/acpi: add usb check for the connection [PATCH 1/3] xhci: Add clear PORT_POWER feature process in the [PATCH 2/3] USB/ACPI: Add usb port's acpi power control in the xhci [PATCH 3/3] usb : Add sysfs files to control usb port's power This patchset is to provide usb port power off mechanism. Add two attributes "portX/control" and "portX/state" for each ports under the usb hub interface sysfs directory. "portX/control" has two options "on" - port power must be on. "off" - port power must be off. "portX/state" reports usb port's power state "on" - power on "off" - power off "error" - can't get power state [PATCH V5 1/8] usb: convert port_owners type from void * to struct [PATCH V5 2/8] usb: make usb port a real device [PATCH V5 3/8] usb: move children to struct usb_port [PATCH V5 4/8] usb/acpi : rebinding usb with acpi since usb port [PATCH V5 5/8] usb/acpi: add check for the connect type of usb port [PATCH V5 6/8] xhci: Add clear PORT_POWER feature process in the [PATCH V5 7/8] USB/ACPI: Add usb port's acpi power control in the [PATCH V5 8/8] usb : Add usb port's power control attributes git diff --stat HEAD~8 Documentation/ABI/testing/sysfs-bus-usb | 25 ++++++++++++ drivers/staging/usbip/usbip_common.c | 3 +- drivers/usb/core/devices.c | 7 ++-- drivers/usb/core/hub.c | 349 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------- drivers/usb/core/usb-acpi.c | 202 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------- drivers/usb/core/usb.h | 25 ++++++++++-- drivers/usb/host/r8a66597-hcd.c | 9 +++-- drivers/usb/host/xhci-hub.c | 16 ++++++++ include/linux/usb.h | 33 +++++++++++++++- 9 files changed, 562 insertions(+), 107 deletions(-)