Messages in this thread | | | Date | Fri, 28 Mar 2014 11:42:35 -0500 | From | Felipe Balbi <> | Subject | Re: [PATCH] usb: xhci: Correct last context entry calculation for Configure Endpoint |
| |
Hi,
On Tue, Mar 25, 2014 at 11:42:43AM -0700, Julius Werner wrote: > @@ -2723,8 +2697,19 @@ int xhci_check_bandwidth(struct usb_hcd *hcd, struct usb_device *udev) > ctrl_ctx->drop_flags == 0) > return 0; > > - xhci_dbg(xhci, "New Input Control Context:\n"); > + /* Fix up Context Entries field. Minimum value is EP0 == BIT(1). */ > slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->in_ctx); > + for (i = 31; i >= 1; i--) { > + u32 le32 = cpu_to_le32(BIT(i));
can you use __le32 instead of u32 here, just to make sure we can make good use of sparse ?
-- balbi [unhandled content-type:application/pgp-signature] | |