AnsweredAssumed Answered

How to change from usb host to peripheral on the fly in linux userspace

Question asked by Davis Roman on Apr 2, 2018
Latest reply on Apr 4, 2018 by igorpadykov



I have a custom i.mx6 based system and I have a connector that exposes a usb interface. 


Our use-case requires that we be able to change between usb host and usb peripheral on the fly in linux userspace. Preferably via the command line.


I was hoping there was something in /sys that i can take advantage of.


I'm currently on a 4.1.15 kernel.


Any ideas would be appreciated,


Thank you,