X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=drivers%2Fusb%2Fhost%2Fxhci.c;h=f53596b16dec6e1ce8f0a386ffe5c5144767158d;hb=29cc88979a8818cd8c5019426e945aed118b400e;hp=1c4432d8fc1048f2e3bb838b63a0be84201f2a82;hpb=870d3be1249b1397395ed3164987397993a16d91;p=linux-2.6-block.git diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 1c4432d8fc10..f53596b16dec 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -987,7 +987,7 @@ static int xhci_check_maxpacket(struct xhci_hcd *xhci, unsigned int slot_id, out_ctx = xhci->devs[slot_id]->out_ctx; ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); hw_max_packet_size = MAX_PACKET_DECODED(le32_to_cpu(ep_ctx->ep_info2)); - max_packet_size = le16_to_cpu(urb->dev->ep0.desc.wMaxPacketSize); + max_packet_size = usb_endpoint_maxp(&urb->dev->ep0.desc); if (hw_max_packet_size != max_packet_size) { xhci_dbg(xhci, "Max Packet Size for ep 0 changed.\n"); xhci_dbg(xhci, "Max packet size in usb_device = %d\n",