I have two usb port in hub attached to my carrier board.I am able to disable the power line like this echo 0 > /sys/class/gpio/gpio5/value .But disabling just power line does not solve the problem since external power can be given to device attached and again it will be visible.Hence we need to disable data line form host controller driver .I have imx6dl board .Can some one please help me with issue?
Please try something like this:
# echo suspend > /sys/bus/usb/devices/1-1.1/power/control