Skip to content

usb: musb: Power management support

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. v2 Latest3 of 5 patches 2 repliesIn review
  2. v12 of 5 patches 6 repliesSuperseded

Changes in v2 from the cover letter

----------
Rebased patches on Felipe's musb-hwmod-pm-runtime branch. Fixed comments from Felipe.

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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5usb: otg: TWL4030: Update the last_event variable.drivers/usb/otg/twl4030-usb.c+2 -00 replies
4/5usb: musb: OMAP4430: Power down the PHY during board initarch/arm/mach-omap2/usb-musb.c+4 -00 replies
5/5usb: musb: OMAP4430: Save/restore the contextarch/arm/mach-omap2/omap_phy_internal.c+7 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH 0/5 v2] usb: musb: Power management support

This patch series supports the retention and offmode support in the idle path for musb driver using runtime pm APIs.

This is restricted to support offmode and retention only when device not connected.When device/cable connected with gadget driver loaded, configured to no idle/standby which will not allow the core transition to retention or off.

There is no context save/restore done by hardware for musb in OMAP3 and OMAP4,driver has to take care of saving and restoring the context during offmode.

Musb has a requirement of configuring sysconfig register to force idle/standby mode and set the ENABLE_FORCE bit in module STANDBY register for retention and offmode support.

Runtime pm and hwmod frameworks will take care of configuring to force idle/standby when pm_runtime_put_sync is called and back to no idle/standby when pm_runeime_get_sync is called.

Compile, boot tested and also tested the retention in the idle path on OMAP3630Zoom3. And tested the global suspend/resume with offmode enabled. Usb basic functionality tested on OMAP4430SDP.

There is some problem with idle path offmode in mainline, I could not test with offmode. But I have tested this patch with resetting the controller in the idle path when wakeup from retention just to make sure that the context is lost, and restore path is working fine.

V2 version:
----------
Rebased patches on Felipe's musb-hwmod-pm-runtime branch. Fixed comments from Felipe.

Hema HK (5):
usb: otg: TWL4030: Update the last_event variable.
usb: musb: Remove platform context save/restore APIs
usb: musb: Idle path retention and offmode support for OMAP3
usb: musb: OMAP4430: Power down the PHY during board init usb:musb: OMAP4430: Save/restore the context

 arch/arm/mach-omap2/omap_phy_internal.c |    7 ++++
 arch/arm/mach-omap2/usb-musb.c          |    4 ++
 drivers/usb/musb/musb_core.c            |   40 +++++++++++++++++++++++
 drivers/usb/musb/musb_core.h            |    4 --
 drivers/usb/musb/musb_gadget.c          |   11 ++++++
 drivers/usb/musb/omap2430.c             |   54 ++++++++++++++----------------
 drivers/usb/otg/twl4030-usb.c           |    2 +
 7 files changed, 89 insertions(+), 33 deletions(-)