xhci: move bus_state structure under the xhci_hub structure.
Move the bus_state structure under struct usb_hub. We need a bus_state strucure for each roothub to keep track of suspend related info for each port. Instead of keeping an array of two bus_state structures right under struct xhci, it makes more sense move them to the xhci_hub structure. No functional changes. Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Este cometimento está contido em:

cometido por
Greg Kroah-Hartman

ascendente
f1fd62a6b6
cometimento
f6187f424c
@@ -1922,8 +1922,8 @@ no_bw:
|
||||
|
||||
xhci->page_size = 0;
|
||||
xhci->page_shift = 0;
|
||||
xhci->bus_state[0].bus_suspended = 0;
|
||||
xhci->bus_state[1].bus_suspended = 0;
|
||||
xhci->usb2_rhub.bus_state.bus_suspended = 0;
|
||||
xhci->usb3_rhub.bus_state.bus_suspended = 0;
|
||||
}
|
||||
|
||||
static int xhci_test_trb_in_td(struct xhci_hcd *xhci,
|
||||
@@ -2524,10 +2524,10 @@ int xhci_mem_init(struct xhci_hcd *xhci, gfp_t flags)
|
||||
for (i = 0; i < MAX_HC_SLOTS; i++)
|
||||
xhci->devs[i] = NULL;
|
||||
for (i = 0; i < USB_MAXCHILDREN; i++) {
|
||||
xhci->bus_state[0].resume_done[i] = 0;
|
||||
xhci->bus_state[1].resume_done[i] = 0;
|
||||
xhci->usb2_rhub.bus_state.resume_done[i] = 0;
|
||||
xhci->usb3_rhub.bus_state.resume_done[i] = 0;
|
||||
/* Only the USB 2.0 completions will ever be used. */
|
||||
init_completion(&xhci->bus_state[1].rexit_done[i]);
|
||||
init_completion(&xhci->usb2_rhub.bus_state.rexit_done[i]);
|
||||
}
|
||||
|
||||
if (scratchpad_alloc(xhci, flags))
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador