Hello @Sanket_Parekh ,
Thank you for your reply.
Actually its a 20 years of old code which is being design in a way that it will initialize both RS232 and USB once our device is bootup.
This MX250 is the part of our product and the whole code is made using the IMX data sheet.
So we are facing the problem in RS232 power consumption when our device is connected via RS232.
As per the code both RS232 and then USB will be initialized once the device is booted up and those are handled further when our FW got the handlers to detect if our device is connected via USB or RS232.
Once the handler or VBUS is detected then as if RS232 is connected then it will close all the USB related functionalities vice versa.
So to overcome we tried to return true in the USB initialization function when RS232 is connected and that reduce the power consumption which was the required one.
So the root cause is USB is getting initialize but not getting properly disabled due to which we are looking to disable USB completely instead of directly returning form beginning.
Do let me know in case of any queries.
Regards,
Mukul Parihar