aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci-mem.c
diff options
context:
space:
mode:
authorAndiry Xu <andiry.xu@amd.com>2011-05-05 06:14:00 -0400
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2011-05-09 12:34:47 -0400
commit7b1fc2ea8a5fbf9487d83865456cff77d0249ea9 (patch)
tree41e3371e3325535480e961e37e17322ea39efb6c /drivers/usb/host/xhci-mem.c
parent51eb01a746089f2c3d9b87f870353772d2fb4c37 (diff)
xHCI 1.0: Isoch endpoint CErr field set
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>
Diffstat (limited to 'drivers/usb/host/xhci-mem.c')
-rw-r--r--drivers/usb/host/xhci-mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c
index 543833b9dbad..04145740686c 100644
--- a/drivers/usb/host/xhci-mem.c
+++ b/drivers/usb/host/xhci-mem.c
@@ -1190,12 +1190,12 @@ int xhci_endpoint_init(struct xhci_hcd *xhci,
1190 /* FIXME dig Mult and streams info out of ep companion desc */ 1190 /* FIXME dig Mult and streams info out of ep companion desc */
1191 1191
1192 /* Allow 3 retries for everything but isoc; 1192 /* Allow 3 retries for everything but isoc;
1193 * error count = 0 means infinite retries. 1193 * CErr shall be set to 0 for Isoch endpoints.
1194 */ 1194 */
1195 if (!usb_endpoint_xfer_isoc(&ep->desc)) 1195 if (!usb_endpoint_xfer_isoc(&ep->desc))
1196 ep_ctx->ep_info2 = cpu_to_le32(ERROR_COUNT(3)); 1196 ep_ctx->ep_info2 = cpu_to_le32(ERROR_COUNT(3));
1197 else 1197 else
1198 ep_ctx->ep_info2 = cpu_to_le32(ERROR_COUNT(1)); 1198 ep_ctx->ep_info2 = cpu_to_le32(ERROR_COUNT(0));
1199 1199
1200 ep_ctx->ep_info2 |= cpu_to_le32(xhci_get_endpoint_type(udev, ep)); 1200 ep_ctx->ep_info2 |= cpu_to_le32(xhci_get_endpoint_type(udev, ep));
1201 1201