From: Hema HK <hemahk@ti.com>
To: linux-usb@vger.kernel.org
Cc: linux-omap@vger.kernel.org, Hema HK <hemahk@ti.com>,
Felipe Balbi <balbi@ti.com>, Tony Lindgren <tony@atomide.com>,
Kevin Hilman <khilman@deeprootsystems.com>,
"Cousson, Benoit" <b-cousson@ti.com>,
Paul Walmsley <paul@pwsan.com>
Subject: [PATCH 0/6 v8]usb: musb: hwmod and runtime pm support for musb
Date: Thu, 17 Feb 2011 12:07:16 +0530 [thread overview]
Message-ID: <1297924642-3791-1-git-send-email-hemahk@ti.com> (raw)
This patch series makes OMAP2PLUS and AM35x musb module implemented
in HWMOD FW way. It also implements musb driver to
use the runtime pm apis for OMAP2PLUS.
As per the OMAP usbotg specification[1] musb sysconfig register
has to be set to force idle and force standby when not used
and set smart idle/standby or no idle/standby during operation.
otherwise core-off will be prevented by musb.
[1]: http://focus.ti.com/pdfs/wtbu/SWPU223D_Final_EPDF_06_07_2010.pdf
This patch series is based on V2.6.38-rc4 + [1] +[2] + [3]
[1] https://patchwork.kernel.org/patch/513461
[2] http://www.spinics.net/lists/linux-usb/msg40575.html
[3] https://patchwork.kernel.org/patch/566751/
With this patch series tested musb functionality like testusb, masstorage
OMAP4430SDP, OMAP3430SDP, and OMAP3630 zoom3.Boot and basic usb tested on AM35x.
Tested global suspend resume for offmode and retention on OMAP3630Zoom3.
Idle path retention and offmode validation is not done with these patch series.
Version History:
---------------
Version V8
Fixed minor comments from Sergei Shtylyov.
Version V7
Added the hwmod for AM35x.
Fixed the comments from Felipe and Kevin.
Version V6
Calling runtime_pm_suspend in the pm_ops function was not effective.
So using the bus runtime methods directly in the pm_ops suspend/resume
functions.
Version V5:
Fixed review comments from Felipe.
Version V4:
Rebased the changes based on the re-orgnized patches submitted by Felipe.
Fixed review comments received for V3.
Dropped the idlepath power management patch with this series.
Some of the links for V3 review comments:
https://patchwork.kernel.org/patch/199482/
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg35488.html
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg33201.html
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg35387.html
Version V3
Added the patch for adding the hwmod database for OMAP2430.
Re-arranged the patches in such a way that first migrate the musb driver
to use the runtime PM apis and then added a patch to support offmode in idle path.
Calling the runtime PM apis before disbaling the interupts in the idle path.
Added the #ifdef CONFIG_PM_RUNTIME check in the musb core driver for calling
the runtime PM APIs as non-omap platforms may not have the runtime pm enabled
and clk_enable/disable should be called for them.
Optimized the context save restore of musb registers only if the next state is
going to offmode and previous state was offmode.
Some of the links for V2 review comments
----------------------------------------
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg34068.html
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg32024.html
http://www.spinics.net/lists/linux-usb/msg35562.html
http://www.spinics.net/lists/linux-usb/msg35720.html
Vesrion v2:
Fixed review comments.
Removed the omap_hwmod.h inclusion from musb.h file which was
breaking the non-omap platform build.
Using the runtime pm apis in the idle path(interrupts disabled).
Added the omap4 hwmod data base.
Version v1:
initial version of the patch series.
Some of the links for v1
------------------------
http://www.spinics.net/lists/linux-usb/msg34570.html
http://www.spinics.net/lists/linux-omap/msg34568.html
http://www.spinics.net/lists/linux-usb/msg34544.html
http://www.spinics.net/lists/linux-usb/msg34540.html
http://www.spinics.net/lists/linux-usb/msg34589.html
http://www.spinics.net/lists/linux-usb/msg34554.html
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg32973.html
Signed-off-by: Hema HK <hemahk@ti.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Cousson, Benoit <b-cousson@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
---
Cousson, Benoit (1):
OMAP4430: hwmod data: Adding USBOTG
Hema HK (5):
OMAP2430: hwmod data: Add USBOTG
OMAP3xxx: hwmod data: Add USBOTG
AM35xx: hwmod data: Add USBOTG
OMAP2+: musb: hwmod adaptation for musb.
usb: musb: Using runtime pm APIs for musb.
arch/arm/mach-omap2/omap_hwmod_2430_data.c | 98 +++++++++++++++++++++++++++
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 101 ++++++++++++++++++++++++++++
arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 93 +++++++++++++++++++++++++
arch/arm/mach-omap2/usb-musb.c | 76 +++++++++++++++------
drivers/usb/musb/musb_core.h | 2 +-
drivers/usb/musb/omap2430.c | 79 ++++++----------------
6 files changed, 369 insertions(+), 80 deletions(-)
next reply other threads:[~2011-02-17 6:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-17 6:37 Hema HK [this message]
2011-02-17 6:37 ` [PATCH 1/6 v8] OMAP2430: hwmod data: Add USBOTG Hema HK
2011-02-17 6:37 ` [PATCH 2/6 v8] OMAP3xxx: " Hema HK
2011-02-17 6:37 ` [PATCH 4/6 v8] OMAP4430: hwmod data: Adding USBOTG Hema HK
[not found] ` <1297924642-3791-1-git-send-email-hemahk-l0cyMroinI0@public.gmane.org>
2011-02-17 6:37 ` [PATCH 3/6 v8] AM35xx: hwmod data: Add USBOTG Hema HK
2011-02-17 6:37 ` [PATCH 5/6 v8] OMAP2+: musb: hwmod adaptation for musb registration Hema HK
2011-02-17 11:33 ` Felipe Balbi
[not found] ` <20110217113321.GA22356-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org>
2011-02-17 11:53 ` Felipe Balbi
2011-02-17 12:11 ` Hema Kalliguddi
2011-02-17 6:37 ` [PATCH 6/6 v8] usb: musb: Using runtime pm APIs for musb Hema HK
2011-02-17 11:58 ` [PATCH 0/6 v8]usb: musb: hwmod and runtime pm support " Felipe Balbi
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=1297924642-3791-1-git-send-email-hemahk@ti.com \
--to=hemahk@ti.com \
--cc=b-cousson@ti.com \
--cc=balbi@ti.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=paul@pwsan.com \
--cc=tony@atomide.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox