mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-21 11:53:08 +01:00
Merge "USB: xhci:Use Max packet macro to align max packet with spec"
This commit is contained in:
commit
03aa6e3f42
2 changed files with 2 additions and 2 deletions
|
|
@ -568,7 +568,7 @@ int xhci_check_maxpacket(struct usb_device *udev)
|
|||
ctrl->devs[slot_id]->out_ctx, ep_index);
|
||||
in_ctx = ctrl->devs[slot_id]->in_ctx;
|
||||
ep_ctx = xhci_get_ep_ctx(ctrl, in_ctx, ep_index);
|
||||
ep_ctx->ep_info2 &= cpu_to_le32(~MAX_PACKET_MASK);
|
||||
ep_ctx->ep_info2 &= cpu_to_le32(~MAX_PACKET(MAX_PACKET_MASK));
|
||||
ep_ctx->ep_info2 |= cpu_to_le32(MAX_PACKET(max_packet_size));
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -655,7 +655,7 @@ struct xhci_ep_ctx {
|
|||
#define MAX_BURST_SHIFT (8)
|
||||
#define CTX_TO_MAX_BURST(p) (((p) >> 8) & 0xff)
|
||||
#define MAX_PACKET(p) (((p)&0xffff) << 16)
|
||||
#define MAX_PACKET_MASK (0xffff << 16)
|
||||
#define MAX_PACKET_MASK (0xffff)
|
||||
#define MAX_PACKET_DECODED(p) (((p) >> 16) & 0xffff)
|
||||
#define MAX_PACKET_SHIFT (16)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue