usb: musb: Call musb_platform_exit from musb_stop
Subsystems (2)
PATCH 1/1 usb: musb: Call musb_platform_exit from musb_stop
musb stop is musb core call during unregister or shutting down gadget or host musb. For graceful exit add musb_platform_exit on musb_stop so-that it can exit the musb platform driver as well.
--- drivers/usb/musb/musb_core.c | 1 + 1 file changed, 1 insertion(+)
drivers/usb/musb/musb_core.c +1 -0
@@ -1110,6 +1110,7 @@ void musb_stop(struct musb *musb)* - ... */ musb_platform_try_idle (musb,0 ); +musb_platform_exit (musb); }/*-------------------------------------------------------------------------*/
Bin Liu
maintainerHi,
Quoted 3 lines · Jagan Teki
musb stop is musb core call during unregister or shutting down gadget or host musb. For graceful exit add
musb_platform_exitonmusb_stopso-that it can exit the musb platform driver as well.
Thanks for the patch. but musb_stop() is called in the .udc_stop() and host .stop() hooks, which can stop (and restart) at any time by the udc or host core, not really during unregister. musb_platform_init() is not called in .udc_start() and .start() hooks, so we shouldn't add musb_platform_exit() in musb_stop().
Regards,
-Bin.
---
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
Quoted 7 lines · Bin Liu
Hi,
Quoted 3 lines · Jagan Teki
musb stop is musb core call during unregister or shutting down gadget or host musb. For graceful exit add
musb_platform_exitonmusb_stopso-that it can exit the musb platform driver as well.
Quoted 5 lines
Thanks for the patch. but
musb_stop()is called in the .udc_stop() and host .stop() hooks, which can stop (and restart) at any time by the udc or host core, not really during unregister.musb_platform_init()is not called in .udc_start() and .start() hooks, so we shouldn't addmusb_platform_exit()inmusb_stop().
Thanks for the explanation.
Look like musb_platform_exit calling during musb_remove call of platform driver. can you explain how the shutdown sequence happen because of if udc_stop call musb_stop to shutdown how come platform_exit will shutdown it's PHY and CLK bits. or is it in reverse?
Jagan.
---
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
Bin Liu
maintainerQuoted 14 lines · Jagan Teki
Quoted 7 lines · Bin Liu
Hi,
Quoted 3 lines · Jagan Teki
musb stop is musb core call during unregister or shutting down gadget or host musb. For graceful exit add
musb_platform_exitonmusb_stopso-that it can exit the musb platform driver as well.Quoted 5 lines
Thanks for the patch. but
musb_stop()is called in the .udc_stop() and host .stop() hooks, which can stop (and restart) at any time by the udc or host core, not really during unregister.musb_platform_init()is not called in .udc_start() and .start() hooks, so we shouldn't addmusb_platform_exit()inmusb_stop().
Quoted 5 lines
Thanks for the explanation.
Look like
musb_platform_exitcalling duringmusb_removecall of platform driver. can you explain how the shutdown sequence happen because of ifudc_stopcallmusb_stopto shutdown how come
musb_stop() only disables for example irq and session. I didn't read how udc_stop() is used though.
Quoted 1 line
platform_exitwill shutdown it's PHY and CLK bits. or is it in
platform_exit() is called in musb_remove().
Not sure if this answers your question though.
Regards,
-Bin.
---
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