linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lan Tianyu <tianyu.lan@intel.com>
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
Subject: [PATCH V4 0/8] usb: make usb port a real device and provide control of port's power to usr space
Date: Thu, 28 Jun 2012 15:31:34 +0800	[thread overview]
Message-ID: <1340868702-1894-1-git-send-email-tianyu.lan@intel.com> (raw)

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 V4 1/8] usb: convert port_owners type from void * to struct
[PATCH V4 2/8] usb: make usb port a real device
[PATCH V4 3/8] usb: move children to struct usb_port
[PATCH V4 4/8] usb/acpi : rebinding usb with acpi since usb port
[PATCH V4 5/8] usb/acpi: add check for the connect type of usb port
[PATCH V4 6/8] xhci: Add clear PORT_POWER feature process in the
[PATCH V4 7/8] USB/ACPI: Add usb port's acpi power control in the
[PATCH V4 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(-)



             reply	other threads:[~2012-06-28  7:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-28  7:31 Lan Tianyu [this message]
2012-06-28  7:31 ` [PATCH V4 1/8] usb: convert port_owners type from void * to struct dev_state * Lan Tianyu
2012-06-28 14:06   ` Alan Stern
2012-06-28  7:31 ` [PATCH V4 3/8] usb: move children to struct usb_port Lan Tianyu
2012-06-28 14:42   ` Alan Stern
2012-06-29  1:23     ` Lan Tianyu
2012-06-28  7:31 ` [PATCH V4 4/8] usb/acpi : rebinding usb with acpi since usb port being made a real device Lan Tianyu
2012-06-28  7:31 ` [PATCH V4 5/8] usb/acpi: add check for the connect type of usb port Lan Tianyu
2012-06-28 14:47   ` Alan Stern
     [not found] ` <1340868702-1894-1-git-send-email-tianyu.lan-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2012-06-28  7:31   ` [PATCH V4 2/8] usb: make usb port a real device Lan Tianyu
     [not found]     ` <1340868702-1894-3-git-send-email-tianyu.lan-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2012-06-28 14:16       ` Alan Stern
2012-06-28  7:31   ` [PATCH V4 6/8] xhci: Add clear PORT_POWER feature process in the xhci_hub_control() Lan Tianyu
2012-06-28  7:31   ` [PATCH V4 7/8] USB/ACPI: Add usb port's acpi power control in the xhci PORT_POWER feature request process Lan Tianyu
2012-06-28  7:31 ` [PATCH V4 8/8] usb : Add usb port's power control attributes Lan Tianyu
2012-06-28 14:58   ` Alan Stern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1340868702-1894-1-git-send-email-tianyu.lan@intel.com \
    --to=tianyu.lan@intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=sarah.a.sharp@linux.intel.com \
    --cc=stern@rowland.harvard.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).