usb: musb: omap2430: Fix retention idle on musb peripheral only boards
PATCH 1/1 usb: musb: omap2430: Fix retention idle on musb peripheral only boards
Recent runtime pm and hwmod conversions for 2.6.39 broke the musb peripheral mode OMAP retention idle on boards where the board mode in struct musb_hdrc_platform_data is set to MUSB_PERIPHERAL.
These conversions changed the way how the OTG_SYSCONFIG register is configured and used in runtime. Before 2.6.39 smart standby/idle modes were activated statically in OTG_SYSCONFIG. Those modes allow that the musb is able to idle when peripheral device is not connected to host.
In 2.6.39 the OTG_SYSCONFIG is updated runtime depending on VBUS status. No standby/idle modes are used when device is connected and force standby/idle when disconnected.
Unfortunately VBUS disconnect event that handles the disconnect case lets the peripheral musb to idle only when board mode is MUSB_OTG. Fix this by checking the peripheral mode also.
---
For 2.6.39 as this fixes the PM regression on those OMAP3 boards that use musb in peripheral mode only.
--- drivers/usb/musb/omap2430.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb/musb/omap2430.c +1 -1
@@ -270,7 +270,7 @@ static int musb_otg_notifications(struct notifier_block *nb,DBG (4 ,"VBUS Disconnect\n" );#ifdef CONFIG_USB_GADGET_MUSB_HDRC -if (is_otg_enabled (musb)) +if (is_otg_enabled (musb) ||is_peripheral_enabled (musb)) if (musb->gadget_driver)#endif {
Signature · 6 lines
1.7.4.4 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Felipe Balbi
AppliedQuoted 13 lines · Jarkko Nikula
Recent runtime pm and hwmod conversions for 2.6.39 broke the musb peripheral mode OMAP retention idle on boards where the board mode in struct
musb_hdrc_platform_datais set toMUSB_PERIPHERAL.These conversions changed the way how the
OTG_SYSCONFIGregister is configured and used in runtime. Before 2.6.39 smart standby/idle modes were activated statically inOTG_SYSCONFIG. Those modes allow that the musb is able to idle when peripheral device is not connected to host.In 2.6.39 the
OTG_SYSCONFIGis updated runtime depending on VBUS status. No standby/idle modes are used when device is connected and force standby/idle when disconnected.
Quoted 5 lines
Unfortunately VBUS disconnect event that handles the disconnect case lets the peripheral musb to idle only when board mode is
MUSB_OTG. Fix this by checking the peripheral mode also.Signed-off-by Jarkko Nikula <[email protected]>
applied, thanks
Signature · 5 lines
balbi -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html