Programmatically disable USB 3

We want to validate that both USB3 and USB2 work on our custom carrier board. Is there a way to programatically disable USB3 and restart the USB controller so that our test devices come back in FullSpeed mode?

Please refer to document and remove usb3 part from device tree.

That would be a device tree change, therefore not programatically

No way to do this in programatical way and also cannot restart usb controller. Most possible to restart the vbus-supply but that depends on hardware design too.

Okay thanks