Skip to content

Commit

Permalink
xHCI 1.0: Isoch endpoint CErr field set
Browse files Browse the repository at this point in the history
xHCI 1.0 specification specifies that CErr does not apply to Isoch endpoints
and shall be set to '0' for Isoch endpoints.

Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
  • Loading branch information
Andiry Xu authored and Sarah Sharp committed May 9, 2011
1 parent 51eb01a commit 7b1fc2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/host/xhci-mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1190,12 +1190,12 @@ int xhci_endpoint_init(struct xhci_hcd *xhci,
/* FIXME dig Mult and streams info out of ep companion desc */

/* Allow 3 retries for everything but isoc;
* error count = 0 means infinite retries.
* CErr shall be set to 0 for Isoch endpoints.
*/
if (!usb_endpoint_xfer_isoc(&ep->desc))
ep_ctx->ep_info2 = cpu_to_le32(ERROR_COUNT(3));
else
ep_ctx->ep_info2 = cpu_to_le32(ERROR_COUNT(1));
ep_ctx->ep_info2 = cpu_to_le32(ERROR_COUNT(0));

ep_ctx->ep_info2 |= cpu_to_le32(xhci_get_endpoint_type(udev, ep));

Expand Down

0 comments on commit 7b1fc2e

Please sign in to comment.