All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sshtylyov@mvista.com>
To: Ruslan Bilovol <ruslan.bilovol@ti.com>
Cc: linux-usb@vger.kernel.org, linux-omap@vger.kernel.org,
	tony@atomide.com, balbi@ti.com
Subject: Re: [PATCH 2/2] OMAP4430: USB Host: Implement workaround for Errata i687
Date: Sun, 01 Jul 2012 01:36:58 +0400	[thread overview]
Message-ID: <4FEF717A.8000703@mvista.com> (raw)
In-Reply-To: <1340961065-26938-2-git-send-email-ruslan.bilovol@ti.com>

Hello.

On 29-06-2012 13:11, Ruslan Bilovol wrote:

> The OMAP4 EHCI controller has the following defect (errata ID i687):

> Title:
> 	USB TLL Hold Timing Violation

> Description:
> 	There is a timing hold violation on an internal logic on
> 	the clock USB TLL path resulting in a systematic connection
> 	failure on the TLL link

> WORKAROUND:
> 	As part of workaround, next should be done:
> 	Set the I/O drive strength to 1.
> 	Depending which USB host subsystem is used,
> 	• Port B1 used: Set CONTROL.CONTROL_SMART2IO_PADCONF_2[11] USBB1_DR0_DS = 0x1
> 	• Port B2 used: Set CONTROL.CONTROL_SMART2IO_PADCONF_2[12] USBB2_DR0_DS = 0x1

> All OMAP4430 devices are impacted.

> Signed-off-by: Ruslan Bilovol<ruslan.bilovol@ti.com>
> ---
>   arch/arm/mach-omap2/usb-host.c |   17 +++++++++++++++++
>   1 files changed, 17 insertions(+), 0 deletions(-)

> diff --git a/arch/arm/mach-omap2/usb-host.c b/arch/arm/mach-omap2/usb-host.c
> index dde8a11..3a6f2a2 100644
> --- a/arch/arm/mach-omap2/usb-host.c
> +++ b/arch/arm/mach-omap2/usb-host.c
[...]
> @@ -252,6 +253,14 @@ void __init setup_4430ehci_io_mux(const enum usbhs_omap_port_mode *port_mode)
>   			OMAP_PIN_INPUT_PULLDOWN);
>   		omap_mux_init_signal("usbb1_ulpitll_dat7",
>   			OMAP_PIN_INPUT_PULLDOWN);
> +
> +		/* Errata i687: set I/O drive strength to 1 */
> +		if (cpu_is_omap443x()) {
> +			u32 val;

    Empty line after the declaration block wouldn't hurt...

> +			val = omap4_ctrl_pad_readl(OMAP4_CTRL_MODULE_PAD_CORE_CONTROL_SMART2IO_PADCONF_2);
> +			val |= OMAP4_USBB1_DR0_DS_MASK;
> +			omap4_ctrl_pad_writel(val, OMAP4_CTRL_MODULE_PAD_CORE_CONTROL_SMART2IO_PADCONF_2);
> +		}
>   			break;
>   	case OMAP_USBHS_PORT_MODE_UNUSED:
>   	default:
> @@ -309,6 +318,14 @@ void __init setup_4430ehci_io_mux(const enum usbhs_omap_port_mode *port_mode)
>   			OMAP_PIN_INPUT_PULLDOWN);
>   		omap_mux_init_signal("usbb2_ulpitll_dat7",
>   			OMAP_PIN_INPUT_PULLDOWN);
> +
> +		/* Errata i687: set I/O drive strength to 1 */
> +		if (cpu_is_omap443x()) {
> +			u32 val;

    Same here...

> +			val = omap4_ctrl_pad_readl(OMAP4_CTRL_MODULE_PAD_CORE_CONTROL_SMART2IO_PADCONF_2);
> +			val |= OMAP4_USBB2_DR0_DS_MASK;
> +			omap4_ctrl_pad_writel(val, OMAP4_CTRL_MODULE_PAD_CORE_CONTROL_SMART2IO_PADCONF_2);
> +		}
>   			break;
>   	case OMAP_USBHS_PORT_MODE_UNUSED:
>   	default:

WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2012-06-30 21:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-29  9:11 [PATCH 1/2] omap4: control: Add the CONTROL_SMART2IO_PADCONF_2 register definition Ruslan Bilovol
     [not found] ` <1340961065-26938-1-git-send-email-ruslan.bilovol-l0cyMroinI0@public.gmane.org>
2012-06-29  9:11   ` [PATCH 2/2] OMAP4430: USB Host: Implement workaround for Errata i687 Ruslan Bilovol
2012-06-30 21:36     ` Sergei Shtylyov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FEF717A.8000703@mvista.com \
    --to=sshtylyov@mvista.com \
    --cc=balbi@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=ruslan.bilovol@ti.com \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.