diff options
Diffstat (limited to 'drivers/usb/host/xhci-mem.c')
-rw-r--r-- | drivers/usb/host/xhci-mem.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index c4b8959e01e7..94a8b28d602e 100644 --- a/drivers/usb/host/xhci-mem.c +++ b/drivers/usb/host/xhci-mem.c | |||
@@ -1473,11 +1473,12 @@ void xhci_update_bw_info(struct xhci_hcd *xhci, | |||
1473 | /* Added or changed endpoint */ | 1473 | /* Added or changed endpoint */ |
1474 | bw_info->ep_interval = CTX_TO_EP_INTERVAL( | 1474 | bw_info->ep_interval = CTX_TO_EP_INTERVAL( |
1475 | le32_to_cpu(ep_ctx->ep_info)); | 1475 | le32_to_cpu(ep_ctx->ep_info)); |
1476 | bw_info->mult = CTX_TO_EP_MULT( | 1476 | /* Number of packets and mult are zero-based in the |
1477 | le32_to_cpu(ep_ctx->ep_info)); | 1477 | * input context, but we want one-based for the |
1478 | /* Number of packets is zero-based in the input context, | 1478 | * interval table. |
1479 | * but we want one-based for the interval table. | ||
1480 | */ | 1479 | */ |
1480 | bw_info->mult = CTX_TO_EP_MULT( | ||
1481 | le32_to_cpu(ep_ctx->ep_info)) + 1; | ||
1481 | bw_info->num_packets = CTX_TO_MAX_BURST( | 1482 | bw_info->num_packets = CTX_TO_MAX_BURST( |
1482 | le32_to_cpu(ep_ctx->ep_info2)) + 1; | 1483 | le32_to_cpu(ep_ctx->ep_info2)) + 1; |
1483 | bw_info->max_packet_size = MAX_PACKET_DECODED( | 1484 | bw_info->max_packet_size = MAX_PACKET_DECODED( |