I am working with imx6 solo processor with a custom base board which is running android kk 4.4.2.
We have a USB 2.0 HUB connected to SOM on USB_HOST_DP, USB_HOST_DN.
And OTG is connected independent from USB 2.0 HUB to SOM.
When we tried to switch OFF and ON the power to USB 2.0 HUB (which is a GPIO from SOM), peripherals connected to USB HUB is working fine.
When OTG is in slave mode android is not able to work in fastboot / adb.
But it is able to work in HOST mode.