mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
usb: xhci: Handle endianness in xhci_set_configuration()
In xhci_set_configuration(), 'Context Entries' field in the slot context was cleared with mask LAST_CTX_MASK, but it should have taken the endianness into consideration. Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
eaaefb066c
commit
e40406603f
1 changed files with 1 additions and 1 deletions
|
@ -536,7 +536,7 @@ static int xhci_set_configuration(struct usb_device *udev)
|
|||
/* slot context */
|
||||
xhci_slot_copy(ctrl, in_ctx, out_ctx);
|
||||
slot_ctx = xhci_get_slot_ctx(ctrl, in_ctx);
|
||||
slot_ctx->dev_info &= ~(LAST_CTX_MASK);
|
||||
slot_ctx->dev_info &= ~(cpu_to_le32(LAST_CTX_MASK));
|
||||
slot_ctx->dev_info |= cpu_to_le32(LAST_CTX(max_ep_flag + 1) | 0);
|
||||
|
||||
xhci_endpoint_copy(ctrl, in_ctx, out_ctx, 0);
|
||||
|
|
Loading…
Reference in a new issue