]> git.karo-electronics.de Git - linux-beck.git/commit
xhci: Refactor bus suspend state into a struct.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 15 Dec 2010 20:47:14 +0000 (12:47 -0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 14 Mar 2011 01:23:36 +0000 (18:23 -0700)
commit20b67cf51fa606442bb343afad0ee1a393a6afb3
tree1d85e8b93aff185211d065a5113beaeb68cfcb26
parent5308a91b9fc1a8f94b860c2589b06908a97cba7e
xhci: Refactor bus suspend state into a struct.

There are several variables in the xhci_hcd structure that are related to
bus suspend and resume state.  There are a couple different port status
arrays that are accessed by port index.  Move those variables into a
separate structure, xhci_bus_state.  Stash that structure in xhci_hcd.

When we have two roothhubs that can be suspended and resumed separately,
we can have two xhci_bus_states, and index into the port arrays in each
structure with the fake roothub port index (not the real hardware port
index).

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci-hub.c
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h