I want to turn off (and back on) the USB functionality of a port while leaving the power for charging purpose. I can do this easily with unbind and bind once a device is connected. However, is there a way to do it before a device is connected, to never have a device going active in the first place? I only want to have this one USB port active (manually activated from the console) for service purpose.
I'm using RPi3 ComputeModule with Raspbian Stretch.