All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sshtylyov@mvista.com>
To: "Kalliguddi, Hema" <hemahk@ti.com>
Cc: Sergei Shtylyov <sshtylyov@mvista.com>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"Mankad, Maulik Ojas" <x0082077@ti.com>,
	Felipe Balbi <felipe.balbi@nokia.com>,
	Tony Lindgren <tony@atomide.com>,
	Kevin Hilman <khilman@deeprootsystems.com>
Subject: Re: [PATCH V2 6/8] usb: musb: Offmode fix for idle path
Date: Tue, 10 Aug 2010 15:19:45 +0400	[thread overview]
Message-ID: <4C6135D1.2000909@ru.mvista.com> (raw)
In-Reply-To: <E0D41E29EB0DAC4E9F3FF173962E9E940270A49F92@dbde02.ent.ti.com>

Hello.

Kalliguddi, Hema wrote:

>>> With OMAP core-off support musb was not functional as context was getting
>>> lost after wakeup from core-off. And also musb was blocking the core-off 
>>> after loading the gadget driver even with no cable connected sometimes.

>>> Added the conext save/restore api in the platform layer which will
>>> be called in the idle and wakeup path.
>>> Changed the usb sysconfig settings as per the usbotg functional spec.
>>> When the device is not active, configure to force idle and force standby mode.
>>> When it is being used, configure in smart standby and smart idle mode.
>>> So while attempting to coreoff the usb is configured to force standby and 
>>> force idle mode, after wakeup configured in smart idle and smart standby.

>>> Signed-off-by: Hema HK <hemahk@ti.com>
>>> Signed-off-by: Maulik Mankad <x0082077@ti.com>
>>> Cc: Felipe Balbi <felipe.balbi@nokia.com>
>>> Cc: Tony Lindgren <tony@atomide.com>
>>> Cc: Kevin Hilman <khilman@deeprootsystems.com>

>> [...]

>>> Index: linux-omap-pm/drivers/usb/musb/musb_core.c
>>> ===================================================================
>>> --- linux-omap-pm.orig/drivers/usb/musb/musb_core.c	
>> 2010-08-06 09:24:21.069863329 -0400
>>> +++ linux-omap-pm/drivers/usb/musb/musb_core.c	
>> 2010-08-06 10:44:06.369863527 -0400
>>> @@ -2427,11 +2427,6 @@
>>>  	}
>>>  
>>>  	musb_save_context(musb);
>>> -
>>> -	if (musb->set_clock)
>>> -		musb->set_clock(musb->clock, 0);
>>> -	else
>>> -		clk_disable(musb->clock);
>>>  	spin_unlock_irqrestore(&musb->lock, flags);
>>>  	return 0;
>>>  }
>>> @@ -2443,12 +2438,6 @@
>>>  
>>>  	if (!musb->clock)
>>>  		return 0;
>>> -
>>> -	if (musb->set_clock)
>>> -		musb->set_clock(musb->clock, 1);
>>> -	else
>>> -		clk_enable(musb->clock);
>>> -
>>>  	musb_restore_context(musb);

>>   The same question again: are you sure that clocks are auto-gated on 
>> non-OMAP platfroms?

> Bon Lui confirmed that there is no clock for blackfin.

    What about DaVinci (and the coming DA8xx)?

WBR, Sergei


  reply	other threads:[~2010-08-10 11:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-06 17:27 [PATCH V2 6/8] usb: musb: Offmode fix for idle path Hema HK
2010-08-07  2:24 ` Bob Liu
2010-08-10  7:09   ` Kalliguddi, Hema
     [not found] ` <1281115624-1174-1-git-send-email-hemahk-l0cyMroinI0@public.gmane.org>
2010-08-07 15:25   ` Sergei Shtylyov
     [not found]     ` <4C5D7AE5.7040506-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
2010-08-10  7:31       ` Kalliguddi, Hema
2010-08-10 11:19         ` Sergei Shtylyov [this message]
     [not found]           ` <4C6135D1.2000909-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
2010-08-10 11:59             ` Kalliguddi, Hema
2010-08-09 13:01   ` Cousson, Benoit
2010-08-09 13:12     ` Kalliguddi, Hema
     [not found]       ` <E0D41E29EB0DAC4E9F3FF173962E9E940270943E2D-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2010-08-09 21:01         ` Kevin Hilman
2010-08-09 16:43   ` DebBarma, Tarun Kanti
2010-08-10  8:23     ` Kalliguddi, Hema
2010-08-10 13:53       ` Sergei Shtylyov

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=4C6135D1.2000909@ru.mvista.com \
    --to=sshtylyov@mvista.com \
    --cc=felipe.balbi@nokia.com \
    --cc=hemahk@ti.com \
    --cc=khilman@deeprootsystems.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=tony@atomide.com \
    --cc=x0082077@ti.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.