Patchwork [U-Boot,v2,1/7] tegra: usb: set USB_PORTS_MAX to correct value

login
register
mail settings
Submitter Lucas Stach
Date Jan. 25, 2013, 2:41 p.m.
Message ID <1359124871-4434-2-git-send-email-dev@lynxeye.de>
Download mbox | patch
Permalink /patch/215752/
State Superseded
Delegated to: Tom Warren
Headers show

Comments

Lucas Stach - Jan. 25, 2013, 2:41 p.m.
Both Tegra20 and Tegra30 have a max of 3 USB controllers.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 arch/arm/cpu/armv7/tegra20/usb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Simon Glass - Jan. 25, 2013, 9:22 p.m.
On Sat, Jan 26, 2013 at 3:41 AM, Lucas Stach <dev@lynxeye.de> wrote:
> Both Tegra20 and Tegra30 have a max of 3 USB controllers.
>
> Signed-off-by: Lucas Stach <dev@lynxeye.de>

Acked-by: Simon Glass <sjg@chromium.org>

> ---
>  arch/arm/cpu/armv7/tegra20/usb.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/cpu/armv7/tegra20/usb.c b/arch/arm/cpu/armv7/tegra20/usb.c
> index 1bccf2b..f151fb2 100644
> --- a/arch/arm/cpu/armv7/tegra20/usb.c
> +++ b/arch/arm/cpu/armv7/tegra20/usb.c
> @@ -44,7 +44,7 @@
>  #endif
>
>  enum {
> -       USB_PORTS_MAX   = 4,                    /* Maximum ports we allow */
> +       USB_PORTS_MAX   = 3,            /* Maximum ports we allow */
>  };
>
>  /* Parameters we need for USB */
> --
> 1.8.0.2
>

Patch

diff --git a/arch/arm/cpu/armv7/tegra20/usb.c b/arch/arm/cpu/armv7/tegra20/usb.c
index 1bccf2b..f151fb2 100644
--- a/arch/arm/cpu/armv7/tegra20/usb.c
+++ b/arch/arm/cpu/armv7/tegra20/usb.c
@@ -44,7 +44,7 @@ 
 #endif
 
 enum {
-	USB_PORTS_MAX	= 4,			/* Maximum ports we allow */
+	USB_PORTS_MAX	= 3,		/* Maximum ports we allow */
 };
 
 /* Parameters we need for USB */