From bf3dfd6847f2309c322fdc53ec0f2ac20116105f Mon Sep 17 00:00:00 2001 From: "Pandita, Vikram" Date: Fri, 29 Feb 2008 15:48:57 +0530 Subject: [PATCH] OMAP34xx USB: EHCI: fix CRC errors Fix OMAP34xx EHCI OUT transfer CRC errors. The issue was observed because the burst DMA access was not enabled resulting in data under-run condition on OUT transfers. The side effect of this was CRC errors on OUT transfers with complemented CRC and multiple retries of each OUT transfer, before success. Also minor fix to change the Copyright header in OMAP34xx EHCI files Signed-off-by: Vikram Pandita Signed-off-by: Tony Lindgren --- drivers/usb/host/ehci-omap.c | 18 +++++++++++++----- drivers/usb/host/ehci-omap.h | 6 +++++- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c index 24781263b28..50f2e21fe84 100644 --- a/drivers/usb/host/ehci-omap.c +++ b/drivers/usb/host/ehci-omap.c @@ -5,9 +5,9 @@ * Tested on OMAP3430 ES2.0 SDP * * Copyright (C) 2007-2008 Texas Instruments, Inc. - * Copyright (C) 2007-2008 Vikram Pandita - * Based on "ehci-fsl.c" by David Brownell and - * "ehci-au1xxx.c" by K.Boge + * Author: Vikram Pandita + * + * Based on "ehci-fsl.c" and "ehci-au1xxx.c" ehci glue layers * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -88,7 +88,11 @@ static void omap_usb_utmi_init(struct usb_hcd *hcd, u8 tll_channel_mask) int i; /* Use UTMI Ports of TLL */ - omap_writel((1 << OMAP_UHH_HOSTCONFIG_ULPI_BYPASS_SHIFT), + omap_writel((1 << OMAP_UHH_HOSTCONFIG_ULPI_BYPASS_SHIFT)| + (1< + * Author: Vikram Pandita * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -102,6 +102,10 @@ #define OMAP_UHH_SYSSTATUS (OMAP_USBHOST_UHH_BASE + 0x14) #define OMAP_UHH_HOSTCONFIG (OMAP_USBHOST_UHH_BASE + 0x40) #define OMAP_UHH_HOSTCONFIG_ULPI_BYPASS_SHIFT 0 + #define OMAP_UHH_HOSTCONFIG_INCR4_BURST_EN_SHIFT 2 + #define OMAP_UHH_HOSTCONFIG_INCR8_BURST_EN_SHIFT 3 + #define OMAP_UHH_HOSTCONFIG_INCR16_BURST_EN_SHIFT 4 + #define OMAP_UHH_HOSTCONFIG_INCRX_ALIGN_EN_SHIFT 5 #define OMAP_UHH_DEBUG_CSR (OMAP_USBHOST_UHH_BASE + 0x44) -- 2.41.1