Skip to content

usb: musb: hwmod and runtime pm support for musb

Hema HK linux-omap 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 of 9 patches 38 repliesIn review
  2. v24 of 8 patches 3 repliesSuperseded

3 of 9 patches are in this archive. The cover letter announces 9.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
2/9usb: musb: Remove board_data parameter from musb_platform_init()drivers/usb/musb/blackfin.c drivers/usb/musb/davinci.c drivers/usb/musb/musb_core.c +3 more+9 -77 replies
7/9OMAP: Hwmod api changesarch/arm/mach-omap2/omap_hwmod.c+13 -65 replies
8/9usb : musb: Using runtime pm apis for musb.drivers/usb/musb/musb_core.c drivers/usb/musb/omap2430.c+32 -3625 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchBenoit CoussonKevin Hilman
2/9A-b
7/9A-b
8/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH 0/9 v3]usb: musb: hwmod and runtime pm support for musb
Cc Felipe Balbi <[email protected]>
Cc Tony Lindgren <[email protected]>
Cc Kevin Hilman <[email protected]>
Cc Cousson, Benoit <[email protected]>
Cc Paul Walmsley <[email protected]>

This patch series makes OMAP2PLUS musb Module implemented in HWMOD FW way. It also implements musb driver to use the runtime pm apis.

PATCH[1/8 v3] and [PATCH 2/8 v3] are the pre-requisites for the hwmod support for the usb module.

[PATCH 9/9 v3] Is offmode fix for usb in idle path using runtime pm apis.

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 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 created top of "origin/pm-core" and below patch

OMAP2+: GPIO: move late PM out of interrupts-disabled idle path
[https://patchwork.kernel.org/patch/176172/]
by Kevin

This patch series is tested on OMAP3630 zoom3, OMAP4430 SDP OMAP2430SDP. On OMAP3630 zoom3, off mode is tested on "origin/pm" branch using omap3_pm_defconfig.

Version History:
---------------
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 disabling 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.

Addressed few review comments on coding styles.

Some of the links for v2 review comments
----------------------------------------
http://www.mail-archive.com/[email protected]/msg34068.html
http://www.mail-archive.com/[email protected]/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/[email protected]/msg32973.html

Cousson, Benoit (1):
usb: musb: HWMOD database structures addition for OMAP4

Hema HK (8):
usb: musb: Adding names for IRQs in resource structure
usb: musb: Remove board_data parameter from musb_platform_init()
usb: musb: HWMOD database structures addition for OMAP3
usb: musb: HWMOD database structures addition for OMAP2430
usb: musb: Using omap_device_build for musb device registration
OMAP: Hwmod api changes
usb : musb: Using runtime pm apis for musb.
usb : musb: Offmode fix for idle path

  arch/arm/mach-davinci/usb.c                |    2 +
  arch/arm/mach-omap2/cpuidle34xx.c          |    1 +
  arch/arm/mach-omap2/omap_hwmod.c           |   19 ++-
  arch/arm/mach-omap2/omap_hwmod_2430_data.c |  102 ++++++++++++++++
  arch/arm/mach-omap2/omap_hwmod_3xxx_data.c |  105 +++++++++++++++++
  arch/arm/mach-omap2/omap_hwmod_44xx_data.c |   99 ++++++++++++++++
  arch/arm/mach-omap2/pm34xx.c               |    3 +
  arch/arm/mach-omap2/usb-musb.c             |  175 ++++++++++++++++++++++------
  arch/arm/plat-omap/include/plat/usb.h      |    2 +
  arch/blackfin/mach-bf527/boards/cm_bf527.c |    2 +
  arch/blackfin/mach-bf527/boards/ezbrd.c    |    2 +
  arch/blackfin/mach-bf527/boards/ezkit.c    |    2 +
  arch/blackfin/mach-bf548/boards/cm_bf548.c |    2 +
  arch/blackfin/mach-bf548/boards/ezkit.c    |    2 +
  drivers/usb/musb/blackfin.c                |    2 +-
  drivers/usb/musb/cppi_dma.c                |    2 +-
  drivers/usb/musb/davinci.c                 |    2 +-
  drivers/usb/musb/musb_core.c               |   40 ++++++-
  drivers/usb/musb/musb_core.h               |    2 +-
  drivers/usb/musb/musbhsdma.c               |    2 +-
  drivers/usb/musb/omap2430.c                |   63 ++++------
  drivers/usb/musb/tusb6010.c                |    2 +-
  include/linux/usb/musb.h                   |   13 ++
 23 files changed, 560 insertions(+), 86 deletions(-)