public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP: Fix tusb6010 init error and compilation warning
@ 2009-04-23  6:30 Jarkko Nikula
  2009-04-23 17:06 ` Kalle Valo
  2009-05-12 17:35 ` [APPLIED] " Tony Lindgren
  0 siblings, 2 replies; 5+ messages in thread
From: Jarkko Nikula @ 2009-04-23  6:30 UTC (permalink / raw)
  To: linux-omap; +Cc: Jarkko Nikula, Roel Kluin

Fix "tusb6010 init error 5, -19" and compilation warning from function
tusb6010_platform_retime "warning: 'sysclk_ps' is used uninitialized in this
function".

I suppose commit c094ba34b8f780885d029ce3c2715a194b780e5d was meant to test
for zero fclk_ps instead of sysclk_ps.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Cc: Roel Kluin <roel.kluin@gmail.com>
---
 arch/arm/mach-omap2/usb-tusb6010.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/usb-tusb6010.c b/arch/arm/mach-omap2/usb-tusb6010.c
index 59c1d57..c05df28 100644
--- a/arch/arm/mach-omap2/usb-tusb6010.c
+++ b/arch/arm/mach-omap2/usb-tusb6010.c
@@ -185,7 +185,7 @@ int tusb6010_platform_retime(unsigned is_refclk)
 	unsigned	sysclk_ps;
 	int		status;
 
-	if (!refclk_psec || sysclk_ps == 0)
+	if (!refclk_psec || fclk_ps == 0)
 		return -ENODEV;
 
 	sysclk_ps = is_refclk ? refclk_psec : TUSB6010_OSCCLK_60;
-- 
1.6.2.1


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

* Re: [PATCH] ARM: OMAP: Fix tusb6010 init error and compilation warning
  2009-04-23  6:30 [PATCH] ARM: OMAP: Fix tusb6010 init error and compilation warning Jarkko Nikula
@ 2009-04-23 17:06 ` Kalle Valo
  2009-05-07  5:17   ` Jarkko Nikula
  2009-05-12 17:35 ` [APPLIED] " Tony Lindgren
  1 sibling, 1 reply; 5+ messages in thread
From: Kalle Valo @ 2009-04-23 17:06 UTC (permalink / raw)
  To: Jarkko Nikula; +Cc: linux-omap, Roel Kluin

Jarkko Nikula <jarkko.nikula@nokia.com> writes:

> Fix "tusb6010 init error 5, -19" and compilation warning from function
> tusb6010_platform_retime "warning: 'sysclk_ps' is used uninitialized in this
> function".
>
> I suppose commit c094ba34b8f780885d029ce3c2715a194b780e5d was meant to test
> for zero fclk_ps instead of sysclk_ps.

I was suffering exactly this problem and this patch fixed it. Now usb
network works again, thanks a lot for fixing this!

> Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
> Cc: Roel Kluin <roel.kluin@gmail.com>

Tested-by: Kalle Valo <kalle.valo@iki.fi>

-- 
Kalle Valo

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

* Re: [PATCH] ARM: OMAP: Fix tusb6010 init error and compilation warning
  2009-04-23 17:06 ` Kalle Valo
@ 2009-05-07  5:17   ` Jarkko Nikula
  2009-05-12 17:42     ` Tony Lindgren
  0 siblings, 1 reply; 5+ messages in thread
From: Jarkko Nikula @ 2009-05-07  5:17 UTC (permalink / raw)
  To: Kalle Valo; +Cc: Jarkko Nikula, linux-omap, Roel Kluin

On Thu, 23 Apr 2009 20:06:39 +0300
Kalle Valo <kalle.valo@iki.fi> wrote:

> Jarkko Nikula <jarkko.nikula@nokia.com> writes:
> 
> > Fix "tusb6010 init error 5, -19" and compilation warning from
> > function tusb6010_platform_retime "warning: 'sysclk_ps' is used
> > uninitialized in this function".
> >
> > I suppose commit c094ba34b8f780885d029ce3c2715a194b780e5d was meant
> > to test for zero fclk_ps instead of sysclk_ps.
> 
> I was suffering exactly this problem and this patch fixed it. Now usb
> network works again, thanks a lot for fixing this!
> 
> > Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
> > Cc: Roel Kluin <roel.kluin@gmail.com>
> 
> Tested-by: Kalle Valo <kalle.valo@iki.fi>
> 
Ping? This patch was a fix for 2.6.30-rcX.


-- 
Jarkko

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

* [APPLIED] [PATCH] ARM: OMAP: Fix tusb6010 init error and compilation warning
  2009-04-23  6:30 [PATCH] ARM: OMAP: Fix tusb6010 init error and compilation warning Jarkko Nikula
  2009-04-23 17:06 ` Kalle Valo
@ 2009-05-12 17:35 ` Tony Lindgren
  1 sibling, 0 replies; 5+ messages in thread
From: Tony Lindgren @ 2009-05-12 17:35 UTC (permalink / raw)
  To: linux-omap

This patch has been applied to the linux-omap
by youw fwiendly patch wobot.

Initial commit ID (Likely to change): 17178f265cbe2220fc437e93128fb0feea54c3fc

PatchWorks
http://patchwork.kernel.org/patch/19477/

Git (Likely to change, and takes a while to get mirrored)
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=17178f265cbe2220fc437e93128fb0feea54c3fc



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

* Re: [PATCH] ARM: OMAP: Fix tusb6010 init error and compilation warning
  2009-05-07  5:17   ` Jarkko Nikula
@ 2009-05-12 17:42     ` Tony Lindgren
  0 siblings, 0 replies; 5+ messages in thread
From: Tony Lindgren @ 2009-05-12 17:42 UTC (permalink / raw)
  To: Jarkko Nikula; +Cc: Kalle Valo, Jarkko Nikula, linux-omap, Roel Kluin

* Jarkko Nikula <jhnikula@gmail.com> [090506 22:16]:
> On Thu, 23 Apr 2009 20:06:39 +0300
> Kalle Valo <kalle.valo@iki.fi> wrote:
> 
> > Jarkko Nikula <jarkko.nikula@nokia.com> writes:
> > 
> > > Fix "tusb6010 init error 5, -19" and compilation warning from
> > > function tusb6010_platform_retime "warning: 'sysclk_ps' is used
> > > uninitialized in this function".
> > >
> > > I suppose commit c094ba34b8f780885d029ce3c2715a194b780e5d was meant
> > > to test for zero fclk_ps instead of sysclk_ps.
> > 
> > I was suffering exactly this problem and this patch fixed it. Now usb
> > network works again, thanks a lot for fixing this!
> > 
> > > Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
> > > Cc: Roel Kluin <roel.kluin@gmail.com>
> > 
> > Tested-by: Kalle Valo <kalle.valo@iki.fi>
> > 
> Ping? This patch was a fix for 2.6.30-rcX.

Sorry for the delay. Pushed and added to omap-fixes, so we should
still get this in.

Regards,

Tony

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

end of thread, other threads:[~2009-05-12 17:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-23  6:30 [PATCH] ARM: OMAP: Fix tusb6010 init error and compilation warning Jarkko Nikula
2009-04-23 17:06 ` Kalle Valo
2009-05-07  5:17   ` Jarkko Nikula
2009-05-12 17:42     ` Tony Lindgren
2009-05-12 17:35 ` [APPLIED] " Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox