From: Lan Tianyu Subject: [PATCH V6 0/9] usb: make usb port a real device and provide control of port's power to usr space Date: Wed, 4 Jul 2012 11:11:38 +0800 Message-ID: <1341371507-5047-1-git-send-email-tianyu.lan@intel.com> Return-path: Received: from mga02.intel.com ([134.134.136.20]:35862 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756744Ab2GDDT7 (ORCPT ); Tue, 3 Jul 2012 23:19:59 -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 V6 1/9] usb: convert port_owners type from void * to struct [PATCH V6 2/9] usb: make usb port a real device [PATCH V6 3/9] usb: move children to struct usb_port [PATCH V6 4/9] usb/acpi : rebinding usb with acpi since usb port [PATCH V6 5/9] usb/acpi: add check for the connect type of usb port [PATCH V6 6/9] xhci: Add clear PORT_POWER feature process in the [PATCH V6 7/9] USB/ACPI: Add usb port's acpi power control in the [PATCH V6 8/9] usb: return error when fail to get usb device [PATCH V6 9/9] usb : Add usb port's power control attributes git diff --stat HEAD~9 Documentation/ABI/testing/sysfs-bus-usb | 25 ++++++++++++ drivers/staging/usbip/usbip_common.c | 3 +- drivers/usb/core/config.c | 4 +- drivers/usb/core/devices.c | 7 ++-- drivers/usb/core/hub.c | 357 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------- drivers/usb/core/usb-acpi.c | 205 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------- drivers/usb/core/usb.h | 25 ++++++++++-- drivers/usb/host/r8a66597-hcd.c | 5 +-- drivers/usb/host/xhci-hub.c | 16 ++++++++ include/linux/usb.h | 32 ++++++++++++++- 10 files changed, 569 insertions(+), 110 deletions(-)