linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mfd: omap-usb-host: bug fix for 3.9
@ 2013-02-27 14:02 Roger Quadros
  2013-03-06  9:33 ` Roger Quadros
  2013-03-13  8:34 ` Samuel Ortiz
  0 siblings, 2 replies; 3+ messages in thread
From: Roger Quadros @ 2013-02-27 14:02 UTC (permalink / raw)
  To: sameo@linux.intel.com
  Cc: Balbi, Felipe, Linux USB Mailing List, Kernel development list,
	tony@atomide.com

Hi Samuel,

One of my patch that I sent for 3.9 introduces a bug that fails to
update the port mode hostconfig register. Because of that, the port modes will
always be 0 (i.e. EHCI PHY mode) and other modes will not work. PHY mode will
work, so beagle/panda have no issues.

Since my hardware setup uses only PHY mode, I couldn't catch this problem earlier.

Below is the fix.

>From 82466757a212bd8b54d806c9d56b1acccbd4d464 Mon Sep 17 00:00:00 2001
From: Roger Quadros <rogerq@ti.com>
Date: Wed, 27 Feb 2013 15:19:24 +0200
Subject: [PATCH] mfd: omap-usb-host: Actually update hostconfig

The helper functions omap_usbhs_rev1_hostconfig()
and omap_usbhs_rev2_hostconfig() don't write into
the hostconfig register. Make sure that we write
the return value into the hostconfig register.

Signed-off-by: Roger Quadros <rogerq@ti.com>
---
 drivers/mfd/omap-usb-host.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c
index 6b5edf6..4febc5c 100644
--- a/drivers/mfd/omap-usb-host.c
+++ b/drivers/mfd/omap-usb-host.c
@@ -460,15 +460,15 @@ static void omap_usbhs_init(struct device *dev)
 
 	switch (omap->usbhs_rev) {
 	case OMAP_USBHS_REV1:
-		omap_usbhs_rev1_hostconfig(omap, reg);
+		reg = omap_usbhs_rev1_hostconfig(omap, reg);
 		break;
 
 	case OMAP_USBHS_REV2:
-		omap_usbhs_rev2_hostconfig(omap, reg);
+		reg = omap_usbhs_rev2_hostconfig(omap, reg);
 		break;
 
 	default:	/* newer revisions */
-		omap_usbhs_rev2_hostconfig(omap, reg);
+		reg = omap_usbhs_rev2_hostconfig(omap, reg);
 		break;
 	}
 
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: mfd: omap-usb-host: bug fix for 3.9
  2013-02-27 14:02 mfd: omap-usb-host: bug fix for 3.9 Roger Quadros
@ 2013-03-06  9:33 ` Roger Quadros
  2013-03-13  8:34 ` Samuel Ortiz
  1 sibling, 0 replies; 3+ messages in thread
From: Roger Quadros @ 2013-03-06  9:33 UTC (permalink / raw)
  To: sameo@linux.intel.com
  Cc: Roger Quadros, Balbi, Felipe, Linux USB Mailing List,
	Kernel development list, tony@atomide.com

Hi Samuel,

On 02/27/2013 04:02 PM, Roger Quadros wrote:
> Hi Samuel,
> 
> One of my patch that I sent for 3.9 introduces a bug that fails to
> update the port mode hostconfig register. Because of that, the port modes will
> always be 0 (i.e. EHCI PHY mode) and other modes will not work. PHY mode will
> work, so beagle/panda have no issues.
> 
> Since my hardware setup uses only PHY mode, I couldn't catch this problem earlier.
> 
> Below is the fix.

Gentle reminder to pick this for 3.9-rc2. Thanks.

cheers,
-roger

> 
>>From 82466757a212bd8b54d806c9d56b1acccbd4d464 Mon Sep 17 00:00:00 2001
> From: Roger Quadros <rogerq@ti.com>
> Date: Wed, 27 Feb 2013 15:19:24 +0200
> Subject: [PATCH] mfd: omap-usb-host: Actually update hostconfig
> 
> The helper functions omap_usbhs_rev1_hostconfig()
> and omap_usbhs_rev2_hostconfig() don't write into
> the hostconfig register. Make sure that we write
> the return value into the hostconfig register.
> 
> Signed-off-by: Roger Quadros <rogerq@ti.com>
> ---
>  drivers/mfd/omap-usb-host.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c
> index 6b5edf6..4febc5c 100644
> --- a/drivers/mfd/omap-usb-host.c
> +++ b/drivers/mfd/omap-usb-host.c
> @@ -460,15 +460,15 @@ static void omap_usbhs_init(struct device *dev)
>  
>  	switch (omap->usbhs_rev) {
>  	case OMAP_USBHS_REV1:
> -		omap_usbhs_rev1_hostconfig(omap, reg);
> +		reg = omap_usbhs_rev1_hostconfig(omap, reg);
>  		break;
>  
>  	case OMAP_USBHS_REV2:
> -		omap_usbhs_rev2_hostconfig(omap, reg);
> +		reg = omap_usbhs_rev2_hostconfig(omap, reg);
>  		break;
>  
>  	default:	/* newer revisions */
> -		omap_usbhs_rev2_hostconfig(omap, reg);
> +		reg = omap_usbhs_rev2_hostconfig(omap, reg);
>  		break;
>  	}
>  
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mfd: omap-usb-host: bug fix for 3.9
  2013-02-27 14:02 mfd: omap-usb-host: bug fix for 3.9 Roger Quadros
  2013-03-06  9:33 ` Roger Quadros
@ 2013-03-13  8:34 ` Samuel Ortiz
  1 sibling, 0 replies; 3+ messages in thread
From: Samuel Ortiz @ 2013-03-13  8:34 UTC (permalink / raw)
  To: Roger Quadros
  Cc: Balbi, Felipe, Linux USB Mailing List, Kernel development list,
	tony@atomide.com

Hi Roger,

On Wed, Feb 27, 2013 at 04:02:53PM +0200, Roger Quadros wrote:
> Hi Samuel,
> 
> One of my patch that I sent for 3.9 introduces a bug that fails to
> update the port mode hostconfig register. Because of that, the port modes will
> always be 0 (i.e. EHCI PHY mode) and other modes will not work. PHY mode will
> work, so beagle/panda have no issues.
> 
> Since my hardware setup uses only PHY mode, I couldn't catch this problem earlier.
> 
> Below is the fix.
> 
> From 82466757a212bd8b54d806c9d56b1acccbd4d464 Mon Sep 17 00:00:00 2001
> From: Roger Quadros <rogerq@ti.com>
> Date: Wed, 27 Feb 2013 15:19:24 +0200
> Subject: [PATCH] mfd: omap-usb-host: Actually update hostconfig
> 
> The helper functions omap_usbhs_rev1_hostconfig()
> and omap_usbhs_rev2_hostconfig() don't write into
> the hostconfig register. Make sure that we write
> the return value into the hostconfig register.
> 
> Signed-off-by: Roger Quadros <rogerq@ti.com>
> ---
>  drivers/mfd/omap-usb-host.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
Patch applied now, thanks.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-13  8:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-27 14:02 mfd: omap-usb-host: bug fix for 3.9 Roger Quadros
2013-03-06  9:33 ` Roger Quadros
2013-03-13  8:34 ` Samuel Ortiz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).