From: Sergei Shtylyov <sshtylyov@mvista.com>
To: "Kalliguddi, Hema" <hemahk@ti.com>
Cc: "DebBarma, Tarun Kanti" <tarun.kanti@ti.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 17:53:13 +0400 [thread overview]
Message-ID: <4C6159C9.6090204@ru.mvista.com> (raw)
In-Reply-To: <E0D41E29EB0DAC4E9F3FF173962E9E940270A49FFB@dbde02.ent.ti.com>
Hello.
Kalliguddi, Hema wrote:
>> Hema,
>>> -----Original Message-----
>>> From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-
>>> owner@vger.kernel.org] On Behalf Of Hema HK
>>> Sent: Friday, August 06, 2010 10:57 PM
>>> To: linux-usb@vger.kernel.org; linux-omap@vger.kernel.org
>>> Cc: Kalliguddi, Hema; Mankad, Maulik Ojas; Felipe Balbi; Tony Lindgren;
>>> Kevin Hilman
>>> Subject: [PATCH V2 6/8] usb: musb: Offmode fix for idle path
>>> From: Hema HK <hemahk@ti.com>
>>> 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/omap2430.c
>>> ===================================================================
>>> --- linux-omap-pm.orig/drivers/usb/musb/omap2430.c 2010-08-06
>>> 09:24:21.069863329 -0400
>>> +++ linux-omap-pm/drivers/usb/musb/omap2430.c 2010-08-06
>>> 10:44:30.093914217 -0400
[...]
>>> @@ -259,15 +273,42 @@
>>> void musb_platform_save_context(struct musb *musb,
>>> struct musb_context_registers *musb_context)
>>> {
>>> - musb_context->otg_sysconfig = musb_readl(musb->mregs, OTG_SYSCONFIG);
>>> - musb_context->otg_forcestandby = musb_readl(musb->mregs, OTG_FORCESTDBY);
>>> + /*
>>> + * As per the omap-usbotg specification, configure it to forced standby
>>> + * and force idle mode when no activity on usb.
>>> + */
>>> + void __iomem *musb_base = musb->mregs;
>>> +
>> Just to clarify, have you already taken care of ioremap() /
>> request_mem_region() for musb_base?
> This is already done.
Not quite. MUSB driver doesn't call request_mem_region().
WBR, Sergei
prev parent reply other threads:[~2010-08-10 13:54 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
[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 [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=4C6159C9.6090204@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=tarun.kanti@ti.com \
--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.